<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <link rel="canonical" href="https://blog.csdn.net/clh604/article/details/9310185"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="report" content='{"pid":"blog"}'>
    <meta name="referrer" content="always">
    <meta http-equiv="Cache-Control" content="no-siteapp" /><link rel="alternate" media="handheld" href="#" />
    <meta name="shenma-site-verification" content="5a59773ab8077d4a62bf469ab966a63b_1497598848">
        <meta name="csdn-baidu-search"  content='{"autorun":true,"install":true,"keyword":"ptyon urlib2_Python_clh604的专栏-CSDN博客"}'>
    
    <link href="https://csdnimg.cn/public/favicon.ico" rel="SHORTCUT ICON">
    <title>ptyon urlib2_Python_clh604的专栏-CSDN博客</title>
    <meta name="description" content="urllib2是Python的一个获取URLs(Uniform Resource Locators)Python">
    <script src='//g.csdnimg.cn/tingyun/1.8.3/blog.js' type='text/javascript'></script>
        
                    <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/detail-075a8c7524.min.css">
                            <script type="application/ld+json">{"@context":"https:\/\/ziyuan.baidu.com\/contexts\/cambrian.jsonld","@id":"https:\/\/blog.csdn.net\/clh604\/article\/details\/9310185","appid":1638831770136827,"title":"ptyon urlib2_Python_clh604\u7684\u4e13\u680f-CSDN\u535a\u5ba2","pubDate":"2013-07-12T12:45:40","upDate":"2013-07-12T12:45:40"}</script>
    
            <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/themes/skin3-template/skin3-template-c9d2f651cc.min.css">
    
<!--    自定义皮肤样式-->
    
    <script type="text/javascript">
        var username = "clh604";
        var blog_address = "https://blog.csdn.net/clh604";
        var static_host = "https://csdnimg.cn/release/phoenix/";
        var currentUserName = "";
        var isOwner = false;
        var loginUrl = "http://passport.csdn.net/account/login?from=https://blog.csdn.net/clh604/article/details/9310185"
        var blogUrl = "https://blog.csdn.net/";

        var curSkin = "skin3-template";
        // 收藏所需数据
        var articleTitle = "ptyon urlib2";
        var articleDesc = "urllib2是Python的一个获取URLs(Uniform Resource Locators)Python";

        var articleTitles = "ptyon urlib2_Python_clh604的专栏-CSDN博客";
        
        var nickName = "cclehui";
        var isCorporate = false;
        var subDomainBlogUrl = "https://blog.csdn.net/"
        var digg_base_url = "https://blog.csdn.net/clh604";
        var articleDetailUrl = "https://blog.csdn.net/clh604/article/details/9310185";
        var isShowThird = "1"
    </script>
    <script src="https://csdnimg.cn/public/common/libs/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
    <!--js引用-->
            <script src="//g.csdnimg.cn/??fixed-sidebar/1.1.6/fixed-sidebar.js,report/1.4.2/report.js" type="text/javascript"></script>
    <link rel="stylesheet" href="https://csdnimg.cn/public/sandalstrap/1.4/css/sandalstrap.min.css">
    <style>
        .MathJax, .MathJax_Message, .MathJax_Preview{
            display: none
        }
    </style>
</head>
<body class="nodata " > 
    <link rel="stylesheet" href="https://csdnimg.cn/public/common/toolbar/content_toolbar_css/content_toolbar.css">
    <script id="toolbar-tpl-scriptId" src="https://csdnimg.cn/public/common/toolbar/js/content_toolbar.js" type="text/javascript" domain="https://blog.csdn.net/"></script>
    <script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/blog_code-c3a0c33d5c.css">
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/vendor/pagination/paging-e040f0c7c8.css">

<script type="text/javascript">
	var NEWS_FEED = function(){}
</script>

<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/chart-3456820cac.css" />
<div class="main_father clearfix d-flex justify-content-center" style="height:100%;"> 
    <div class="container clearfix" id="mainBox">
        <div  class='space_container'></div>
        <main>
            <div class="blog-content-box">
    <div class="article-header-box">
        <div class="article-header">
            <div class="article-title-box">
                <h1 class="title-article">ptyon urlib2</h1>
            </div>
            <div class="article-info-box">
                <div class="article-bar-top">
                    <!--文章类型-->
                    <span class="article-type type-2 float-left">转载</span>                                                                                                                                            <a class="follow-nickName" href="https://me.csdn.net/clh604" target="_blank" rel="noopener">cclehui</a>
                    <span class="time">最后发布于2013-07-12 12:45:40                    </span>
                    <span class="read-count">阅读数 2073</span>
                    <a id='blog_detail_zk_collection' data-report-click='{"mod":"popu_823"}'>
                        <svg class="icon">
                            <use xlink:href="#icon-csdnc-Collection-G" ></use>
                        </svg>
                        收藏
                    </a>
                                    </div>
                                <div class="up-time">发布于2013-07-12 12:45:40</div>
                <div class="slide-content-box">
                                                        <div class="tags-box artic-tag-box">
                           <span class="label">分类专栏：</span>
                                                                                             <a class="tag-link" target="_blank" rel="noopener"
                                      href="https://blog.csdn.net/clh604/category_1499847.html">
                                       python                                   </a>
                                                                                  </div>
                                                                                                                                           </div>
                <div class="operating">
                                                                <a class="href-article-edit slide-toggle">展开</a>
                                    </div>
            </div>
        </div>
    </div>
    <article class="baidu_pl">
        <!--python安装手册开始-->
                <!--python安装手册结束-->
                <!--####专栏广告位图文切换开始-->
                                    <!--####专栏广告位图文切换结束-->
         <div id="article_content" class="article_content clearfix">
            <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-833878f763.css" />
                            <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-833878f763.css" />
                <div class="htmledit_views" id="content_views">
                                            
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">urllib2是Python的一个获取URLs(Uniform&nbsp;Resource&nbsp;Locators)的组件。他以urlopen函数的形式提供了一个非常简单的接口，</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">这是具有利用不同协议获取URLs的能力，他同样提供了一个比较复杂的接口来处理一般情况，例如：基础验证，cookies,代理和其他。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">它们通过handlers和openers的对象提供。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">urllib2支持获取不同&#26684;式的URLs(在URL的&quot;:&quot;前定义的字串,例如：&quot;ftp&quot;是&quot;ftp:python.ort/&quot;的前缀),它们利用它们相关网络协议(例如FTP,HTTP)</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">进行获取。这篇教程关注最广泛的应用--HTTP。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">对于简单的应用，urlopen是非常容易使用的。但当你在打开HTTP的URLs时遇到错误或异常，你将需要一些超文本传输协议(HTTP)的理解。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">最权威的HTTP文档当然是RFC&nbsp;2616(http://rfc.net/rfc2616.html)。这是一个技术文档，所以并不易于阅读。这篇HOWTO教程的目的是展现如何使用urllib2,</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">并提供足够的HTTP细节来帮助你理解。他并不是urllib2的文档说明，而是起一个辅助作用。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">获取&nbsp;URLs</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">最简单的使用urllib2将如下所示</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_111194" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
</td>
<td class="code" style="list-style:none; width:721.1111450195313px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.urlopen(</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'http://python.org/'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">)</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">html&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response.read()</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">urllib2的很多应用就是那么简单(记住，除了&quot;http:&quot;,URL同样可以使用&quot;ftp:&quot;,&quot;file:&quot;等等来替代)。但这篇文章是教授HTTP的更复杂的应用。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">HTTP是基于请求和应答机制的--客户端提出请求，服务端提供应答。urllib2用一个Request对象来映射你提出的HTTP请求,在它最简单的使用形式中你将用你要请求的</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">地址创建一个Request对象，通过调用urlopen并传入Request对象，将返回一个相关请求response对象，这个应答对象如同一个文件对象，所以你可以在Response中调用.read()。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_553807" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
4</div>
</td>
<td class="code" style="list-style:none; width:721.1111450195313px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">req&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.Request(</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'http://www.voidspace.org.uk'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">)</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.urlopen(req)</code></div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">the_page&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response.read()</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">记得urllib2使用相同的接口处理所有的URL头。例如你可以像下面那样创建一个ftp请求。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_606271" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
</td>
<td class="code" style="list-style:none; width:721.1111450195313px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">req&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.Request(</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'ftp://example.com/'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">)</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">在HTTP请求时，允许你做额外的两件事。首先是你能够发送data表单数据，其次你能够传送额外的关于数据或发送本身的信息(&quot;metadata&quot;)到服务器，此数据作为HTTP的&quot;headers&quot;来发送。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">接下来让我们看看这些如何发送的吧。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">Data数据</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">有时候你希望发送一些数据到URL(通常URL与CGI[通用网关接口]脚本，或其他WEB应用程序挂接)。在HTTP中,这个经常使用熟知的POST请求发送。这个通常在你提交一个HTML表单时由你的浏览器来做。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">并不是所有的POSTs都来源于表单，你能够使用POST提交任意的数据到你自己的程序。一般的HTML表单，data需要编码成标准形式。然后做为data参数传到Request对象。编码工作使用urllib的函数而非</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">urllib2。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_604911" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
4</div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
5</div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
6</div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
7</div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
8</div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
9</div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
10</div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
11</div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
12</div>
</td>
<td class="code" style="list-style:none; width:712.2222290039063px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
&nbsp;</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">url&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'http://www.someserver.com/cgi-bin/register.cgi'</code></div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">values&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">{</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'name'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Michael&nbsp;Foord'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,</code></div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'location'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Northampton'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,</code></div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'language'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Python'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">}</code></div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
&nbsp;</div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">data&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib.urlencode(values)</code></div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">req&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.Request(url,&nbsp;data)</code></div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.urlopen(req)</code></div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">the_page&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response.read()</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">记住有时需要别的编码(例如从HTML上传文件--看http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13&nbsp;HTML&nbsp;Specification,&nbsp;Form&nbsp;Submission的详细说明)。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">如ugoni没有传送data参数，urllib2使用GET方式的请求。GET和POST请求的不同之处是POST请求通常有&quot;副作用&quot;，它们会由于某种途径改变系统状态(例如提交成堆垃圾到你的门口)。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">尽管HTTP标准说的很清楚POSTs通常会产生副作用，GET请求不会产生副作用，但没有什么可以阻止GET请求产生副作用，同样POST请求也可能不产生副作用。Data同样可以通过在Get请求</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">的URL本身上面编码来传送。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">可看如下例子</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_664836" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
4</div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
5</div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
6</div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
7</div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
8</div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
9</div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
10</div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
11</div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
12</div>
</td>
<td class="code" style="list-style:none; width:712.2222290039063px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;data&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">{}</code></div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;data[</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'name'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">]&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Somebody&nbsp;Here'</code></div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;data[</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'location'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">]&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Northampton'</code></div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;data[</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'language'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">]&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Python'</code></div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;url_values&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib.urlencode(data)</code></div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">url_values</code></div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">name</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">Somebody</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">&#43;</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">Here&amp;language</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">Python&amp;location</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">Northampton</code></div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;url&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'http://www.example.com/example.cgi'</code></div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;full_url&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">url&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">&#43;</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'?'</code>&nbsp;<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">&#43;</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">url_values</code></div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;data&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">open</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">(full_url)</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">Headers</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">我们将在这里讨论特定的HTTP头，来说明怎样添加headers到你的HTTP请求。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">有一些站点不喜欢被程序（非人为访问）访问，或者发送不同版本的内容到不同的浏览器。默认的urllib2把自己作为“Python-urllib/x.y”(x和y是Python主版本和次版本号,例如Python-urllib/2.5)，</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">这个身份可能会让站点迷惑，或者干脆不工作。浏览器确认自己身份是通过User-Agent头，当你创建了一个请求对象，你可以给他一个包含头数据的字典。下面的例子发送跟上面一样的内容，但把自身</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">模拟成Internet&nbsp;Explorer。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_187479" class="syntaxhighlighter  python " style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
4</div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
5</div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
6</div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
7</div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
8</div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
9</div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
10</div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
11</div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
12</div>
<div class="line number13 index12 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
13</div>
<div class="line number14 index13 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
14</div>
</td>
<td class="code" style="list-style:none; width:712.2222290039063px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
&nbsp;</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">url&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'http://www.someserver.com/cgi-bin/register.cgi'</code></div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">user_agent&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Mozilla/4.0&nbsp;(compatible;&nbsp;MSIE&nbsp;5.5;&nbsp;Windows&nbsp;NT)'</code></div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">values&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">{</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'name'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Michael&nbsp;Foord'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,</code></div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'location'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Northampton'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,</code></div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'language'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Python'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">}</code></div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">headers&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">{&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'User-Agent'</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:&nbsp;user_agent&nbsp;}</code></div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
&nbsp;</div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">data&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib.urlencode(values)</code></div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">req&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.Request(url,&nbsp;data,&nbsp;headers)</code></div>
<div class="line number13 index12 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.urlopen(req)</code></div>
<div class="line number14 index13 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">the_page&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response.read()</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">response应答对象同样有两个很有用的方法。看下面的节info&nbsp;and&nbsp;geturl，我们将看到当发生错误时会发生什么。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">Handle&nbsp;Exceptions处理异常</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">当urlopen不能够处理一个response时，产生urlError（不过通常的Python&nbsp;APIs异常如ValueError,TypeError等也会同时产生）。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">HTTPError是urlError的子类，通常在特定HTTP&nbsp;URLs中产生。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">URLError</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">通常，URLError在没有网络连接(没有路由到特定服务器),或者服务器不存在的情况下产生。这种情况下，异常同样会带有&quot;reason&quot;属性，它是一个tuple，包含了一个错误号和一个错误信息。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">例如</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_118155" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
4</div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
5</div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
6</div>
</td>
<td class="code" style="list-style:none; width:721.1111450195313px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;req&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.Request(</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'http://www.pretend_server.org'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">)</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">try</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:&nbsp;urllib2.urlopen(req)</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">except</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">URLError,&nbsp;e:</code></div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">e.reason</code></div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;</code></div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">(</code><code class="python value" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(0,153,0)!important">4</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'getaddrinfo&nbsp;failed'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">)</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">HTTPError</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">服务器上每一个HTTP&nbsp;应答对象response包含一个数字&quot;状态码&quot;。有时状态码指出服务器无法完成请求。默认的处理器会为你处理一部分这种应答(例如:假如response是一个&quot;重定向&quot;，需要客户端从别的地址获取文档</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">，urllib2将为你处理)。其他不能处理的，urlopen会产生一个HTTPError。典型的错误包含&quot;404&quot;(页面无法找到)，&quot;403&quot;(请求禁止)，和&quot;401&quot;(带验证请求)。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">请看RFC&nbsp;2616&nbsp;第十节有所有的HTTP错误码</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">HTTPError实例产生后会有一个整型'code'属性，是服务器发送的相关错误号。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">Error&nbsp;Codes错误码</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">因为默认的处理器处理了重定向(300以外号码)，并且100-299范围的号码指示成功，所以你只能看到400-599的错误号码。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">BaseHTTPServer.BaseHTTPRequestHandler.response是一个很有用的应答号码字典，显示了RFC&nbsp;2616使用的所有的应答号。这里为了方便重新展示该字典。（译者略）</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">当一个错误号产生后，服务器返回一个HTTP错误号，和一个错误页面。你可以使用HTTPError实例作为页面返回的应答对象response。这表示和错误属性一样，它同样包含了read,geturl,和info方法。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_985388" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
4</div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
5</div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
6</div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
7</div>
</td>
<td class="code" style="list-style:none; width:721.1111450195313px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;req&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2.Request(</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'http://www.python.org/fish.html'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">)</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">try</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;urllib2.urlopen(req)</code></div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">except</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">URLError,&nbsp;e:</code></div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">e.code</code></div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">e.read()</code></div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&gt;&gt;&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">404</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">&lt;!DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;&quot;-//W3C//DTD&nbsp;HTML&nbsp;4.01&nbsp;Transitional//EN&quot;</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">&nbsp;&nbsp;&nbsp;&nbsp;&quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">&lt;?xml-stylesheet&nbsp;href=&quot;./css/ht2html.css&quot;</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">&nbsp;&nbsp;&nbsp;&nbsp;type=&quot;text/css&quot;?&gt;</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">&lt;html&gt;&lt;head&gt;&lt;title&gt;Error&nbsp;404:&nbsp;File&nbsp;Not&nbsp;Found&lt;/title&gt;</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">......&nbsp;etc...</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">Wrapping&nbsp;it&nbsp;Up包装</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">所以如果你想为HTTPError或URLError做准备，将有两个基本的办法。我则比较喜欢第二种。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">第一个：</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_612059" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
4</div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
5</div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
6</div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
7</div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
8</div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
9</div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
10</div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
11</div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
12</div>
</td>
<td class="code" style="list-style:none; width:712.2222290039063px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">from</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">Request,&nbsp;urlopen,&nbsp;URLError,&nbsp;HTTPError</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">req&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">Request(someurl)</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">try</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:</code></div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urlopen(req)</code></div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">except</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">HTTPError,&nbsp;e:</code></div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">print</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'The&nbsp;server&nbsp;couldn\'t&nbsp;fulfill&nbsp;the&nbsp;request.'</code></div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Error&nbsp;code:&nbsp;'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,&nbsp;e.code</code></div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">except</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">URLError,&nbsp;e:</code></div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'We&nbsp;failed&nbsp;to&nbsp;reach&nbsp;a&nbsp;server.'</code></div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Reason:&nbsp;'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,&nbsp;e.reason</code></div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">else</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:</code></div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python comments" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(0,130,0)!important">#&nbsp;everything&nbsp;is&nbsp;fine</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">注意：except&nbsp;HTTPError&nbsp;必须在第一个，否则except&nbsp;URLError将同样接受到HTTPError。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">第二个：</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div style="list-style:none; margin:0px; padding:0px; border:none; outline:none 0px; color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<div id="highlighter_399487" class="syntaxhighlighter  python" style="list-style:none; margin:1em 0px!important; padding:0px; border:none; outline:none 0px; width:757.9861450195313px; position:relative!important; overflow:auto; font-size:1em!important; background-color:white!important">
<div class="toolbar" style="list-style:none; width:757.2222290039063px; margin:0px!important; padding:0px!important; border:none!important; outline:0px!important; background-color:rgb(245,245,245)!important; bottom:auto!important; float:none!important; height:24px!important; left:auto!important; line-height:24px!important; overflow:visible!important; position:static!important; right:0px!important; top:0px!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:10px!important; min-height:auto!important; z-index:10!important; text-indent:6px!important">
<span style="height:24px!important; line-height:24px!important">Python code</span><span class="clipboardCopyBtn" title="复制" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important"></span>
<div class="d_clip_button" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important">
</div>
<span class="clipboardWindowBtn" style="height:16px!important; line-height:16px!important; margin-left:12px; display:inline-block; vertical-align:middle; width:16px!important; text-indent:-5000px!important"><a href="http://bbs.csdn.net/topics/300178836#clipboardWindow" title="源码" style="color:white!important; text-decoration:none!important; border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:1px 0px 0px!important; position:static!important; right:auto!important; text-align:center!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-weight:normal!important; font-size:1em!important; min-height:auto!important; display:block!important">?</a></span></div>
<table border="0" cellpadding="0" cellspacing="0" style="width:753.3333740234375px; margin:0px!important; border:1px solid rgb(221,221,221)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; outline:0px!important; overflow:visible!important; padding:5px 0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<tbody style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<tr style="border:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; margin:0px!important; outline:0px!important; overflow:visible!important; padding:0px!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<td class="gutter" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(175,175,175)!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
1</div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
2</div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
3</div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
4</div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
5</div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
6</div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
7</div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
8</div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
9</div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
10</div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
11</div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
12</div>
<div class="line number13 index12 alt2" style="list-style:none; margin:0px!important; padding:0px 0.5em 0px 1em!important; border-right-style:solid!important; border-width:0px 3px 0px 0px!important; border-right-color:rgb(108,226,108)!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; text-align:right!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
13</div>
</td>
<td class="code" style="list-style:none; width:712.2222290039063px; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">
<div class="container" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:relative!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important">
<div class="line number1 index0 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">from</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urllib2&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">import</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">Request,&nbsp;urlopen,&nbsp;URLError</code></div>
<div class="line number2 index1 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">req&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">Request(someurl)</code></div>
<div class="line number3 index2 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">try</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:</code></div>
<div class="line number4 index3 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">response&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">=</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">urlopen(req)</code></div>
<div class="line number5 index4 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">except</code>&nbsp;<code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">URLError,&nbsp;e:</code></div>
<div class="line number6 index5 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">if</code>&nbsp;<code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">hasattr</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">(e,&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'reason'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">):</code></div>
<div class="line number7 index6 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'We&nbsp;failed&nbsp;to&nbsp;reach&nbsp;a&nbsp;server.'</code></div>
<div class="line number8 index7 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">print</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Reason:&nbsp;'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,&nbsp;e.reason</code></div>
<div class="line number9 index8 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">elif</code>&nbsp;<code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">hasattr</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">(e,&nbsp;</code><code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'code'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">):</code></div>
<div class="line number10 index9 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">print</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'The&nbsp;server&nbsp;couldn\'t&nbsp;fulfill&nbsp;the&nbsp;request.'</code></div>
<div class="line number11 index10 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python functions" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(255,20,147)!important">print</code>&nbsp;<code class="python string" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:blue!important">'Error&nbsp;code:&nbsp;'</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">,&nbsp;e.code</code></div>
<div class="line number12 index11 alt1" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python keyword" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-weight:bold!important; font-size:1em!important; min-height:auto!important; color:rgb(0,102,153)!important">else</code><code class="python plain" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">:</code></div>
<div class="line number13 index12 alt2" style="list-style:none; margin:0px!important; padding:0px 1em!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-size:1em!important; min-height:auto!important; white-space:pre!important">
<code class="python spaces" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="python comments" style="list-style:none; margin:0px!important; padding:0px!important; border:0px!important; outline:0px!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; vertical-align:baseline!important; width:auto!important; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important; font-size:1em!important; min-height:auto!important; color:rgb(0,130,0)!important">#&nbsp;everything&nbsp;is&nbsp;fine</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">info&nbsp;and&nbsp;geturl&nbsp;</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">urlopen返回的应答对象response(或者HTTPError实例)有两个很有用的方法info()和geturl()</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">geturl&nbsp;--&nbsp;这个返回获取的真实的URL，这个很有用，因为urlopen(或者opener对象使用的)或许</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">会有重定向。获取的URL或许跟请求URL不同。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">info&nbsp;--&nbsp;这个返回对象的字典对象，该字典描述了获取的页面情况。通常是服务器发送的特定头headers。目前是httplib.HTTPMessage&nbsp;实例。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">经典的headers包含&quot;Content-length&quot;，&quot;Content-type&quot;，和其他。查看Quick&nbsp;Reference&nbsp;to&nbsp;HTTP&nbsp;Headers(http://www.cs.tut.fi/~jkorpela/http.html)</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">获取有用的HTTP头列表，以及它们的解释意义。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">Openers和Handlers</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">当你获取一个URL你使用一个opener(一个urllib2.OpenerDirector的实例，urllib2.OpenerDirector可能名字可能有点让人混淆。)正常情况下，我们</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">使用默认opener&nbsp;--&nbsp;通过urlopen,但你能够创建个性的openers，Openers使用处理器handlers，所有的“繁重”工作由handlers处理。每个handlers知道</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">如何通过特定协议打开URLs，或者如何处理URL打开时的各个方面，例如HTTP重定向或者HTTP&nbsp;cookies。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">如果你希望用特定处理器获取URLs你会想创建一个openers，例如获取一个能处理cookie的opener，或者获取一个不重定向的opener。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">要创建一个&nbsp;opener,实例化一个OpenerDirector，然后调用不断调用.add_handler(some_handler_instance).</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">同样，可以使用build_opener，这是一个更加方便的函数，用来创建opener对象，他只需要一次函数调用。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">build_opener默认添加几个处理器，但提供快捷的方法来添加或更新默认处理器。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">其他的处理器handlers你或许会希望处理代理，验证，和其他常用但有点特殊的情况。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">install_opener&nbsp;用来创建（全局）默认opener。这个表示调用urlopen将使用你安装的opener。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">Opener对象有一个open方法，该方法可以像urlopen函数那样直接用来获取urls：通常不必调用install_opener，除了为了方便。</span><br style="color:rgb(51,51,51); font-family:Helvetica,Tahoma,Arial,sans-serif; font-size:14.44444465637207px; line-height:23.99305534362793px; background-color:rgb(245,245,245)">
                                    </div>
                                                <div class="more-toolbox">
                <div class="left-toolbox">
                    <ul class="toolbox-list">
                        
                        <li class="tool-item tool-active is-like "><a href="javascript:;"><svg class="icon" aria-hidden="true">
                            <use xlink:href="#csdnc-thumbsup"></use>
                        </svg><span class="name">点赞</span>
                        <span class="count"></span>
                        </a></li>
                        <li class="tool-item tool-active is-collection "><a href="javascript:;" data-report-click='{"mod":"popu_824"}'><svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-csdnc-Collection-G" ></use>
                        </svg><span class="name">收藏</span></a></li>
                        <li class="tool-item tool-active is-share"><a href="javascript:;" data-report-click='{"mod":"1582594662_002"}'><svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-csdnc-fenxiang"></use>
                        </svg>分享</a></li>
                        <!--打赏开始-->
                                                <!--打赏结束-->
                                                <li class="tool-item tool-more">
                            <a>
                            <svg t="1575545411852" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5717" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M179.176 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5718"></path><path d="M509.684 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5719"></path><path d="M846.175 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5720"></path></svg>
                            </a>
                            <ul class="more-box">
                                <li class="item"><a class="article-report">文章举报</a></li>
                            </ul>
                        </li>
                                            </ul>
                </div>
                            </div>
            <div class="person-messagebox">
                <div class="left-message"><a href="https://blog.csdn.net/clh604">
                    <img src="https://profile.csdnimg.cn/1/C/8/3_clh604" class="avatar_pic" username='clh604'>
                                            <img src="https://g.csdnimg.cn/static/user-reg-year/1x/12.png" class="user-years">
                                    </a></div>
                <div class="middle-message">
                                        <div class="title"><span class="tit"><a href="https://blog.csdn.net/clh604" data-report-click='{"mod":"popu_379"}' target="_blank">cclehui</a></span>
                                            </div>
                    <div class="text"><span>发布了120 篇原创文章</span> · <span>获赞 63</span> · <span>访问量 205万+</span></div>
                </div>
                                <div class="right-message">
                                            <a href=https://im.csdn.net/im/main.html?userName=clh604 target="_blank" 
                            class="btn btn-sm btn-red-hollow bt-button personal-letter">私信
                        </a>
                                                            <a class="btn btn-sm  bt-button personal-watch" data-report-click='{"mod":"popu_379"}'>关注</a>
                                    </div>
                            </div>
                    </div>
    </article>
    
</div>


                        <div class="hide-article-box hide-article-pos text-center">
                <a class="btn-readmore" data-report-view='{"mod":"popu_376","dest":"https://blog.csdn.net/clh604/article/details/9310185","strategy":"readmore"}' data-report-click='{"mod":"popu_376","dest":"https://blog.csdn.net/clh604/article/details/9310185","strategy":"readmore"}'>
                    展开阅读全文
                    <svg class="icon chevrondown" aria-hidden="true">
                        <use xlink:href="#csdnc-chevrondown"></use>
                    </svg>
                </a>
            </div>
        

    <script>
    $("#blog_detail_zk_collection").click(function(){
        window.csdn.articleCollection()
    })
</script>

            <div id="dmp_ad_58"><div id="kp_box_58" data-pid="58"><script type="text/javascript">
        (function() {
            var s = "_" + Math.random().toString(36).slice(2);
            document.write('<div style="" id="' + s + '"></div>');
            (window.slotbydup = window.slotbydup || []).push({
                id: "u3501897",
                container: s
            });
        })();
</script>
<!-- 多条广告如下脚本只需引入一次 -->
<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" >
</script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=58&a=386&c=0&k=&d=1&t=3&u=019091a183cc4a6b81879bd6daa59d80"></div></div>            
            <a id="commentBox" name="commentBox"></a>
<div class="comment-box">
	<div class="comment-edit-box d-flex">
		<a id="commentsedit"></a>
		<div class="user-img">
			<a href="javascript:void(0);" target="_blank" rel="noopener">
				<img class="show_loginbox" src="//g.csdnimg.cn/static/user-img/anonymous-User-img.png">
			</a>
		</div>
		<form id="commentform">
			<input type="hidden" id="comment_replyId">
			<textarea class="comment-content" name="comment_content" id="comment_content" placeholder="想对作者说点什么" maxlength="1000"></textarea>
			<div class="opt-box"> <!-- d-flex -->
				<div id="ubbtools" class="add_code">
					<a href="#insertcode" code="code" target="_self"><i class="icon iconfont icon-daima"></i></a>
				</div>
				<input type="hidden" id="comment_replyId" name="comment_replyId">
				<input type="hidden" id="article_id" name="article_id" value="9310185">
				<input type="hidden" id="comment_userId" name="comment_userId" value="">
				<input type="hidden" id="commentId" name="commentId" value="">
				<div style="display: none;" class="csdn-tracking-statistics tracking-click" data-report-click='{"mod":"popu_384","dest":""}'><a href="#" target="_blank" class="comment_area_btn" rel="noopener">发表评论</a></div>
				<div class="dropdown" id="myDrap">
					<a class="dropdown-face d-flex align-items-center" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
					<div class="txt-selected text-truncate">添加代码片</div>
					<svg class="icon d-block" aria-hidden="true">
						<use xlink:href="#csdnc-triangledown"></use>
					</svg>
					</a>
					<ul class="dropdown-menu" id="commentCode" aria-labelledby="drop4">
						<li><a data-code="html">HTML/XML</a></li>
						<li><a data-code="objc">objective-c</a></li>
						<li><a data-code="ruby">Ruby</a></li>
						<li><a data-code="php">PHP</a></li>
						<li><a data-code="csharp">C</a></li>
						<li><a data-code="cpp">C++</a></li>
						<li><a data-code="javascript">JavaScript</a></li>
						<li><a data-code="python">Python</a></li>
						<li><a data-code="java">Java</a></li>
						<li><a data-code="css">CSS</a></li>
						<li><a data-code="sql">SQL</a></li>
						<li><a data-code="plain">其它</a></li>
					</ul>
				</div>  
				<div class="right-box">
                                        <span id="tip_comment" class="tip">还能输入<em>1000</em>个字符</span>
					<input type="button" class="btn btn-sm btn-cancel d-none" value="取消回复">
					<a data-report-click='{"mod":"1582594662_003"}'><input type="submit" class="btn btn-sm btn-red btn-comment" value="发表评论"></a>
				</div>
			</div>
		</form>
	</div>

	<div class="comment-list-container">
		<a id="comments"></a>
		<div class="comment-list-box">
		</div>
		<div id="commentPage" class="pagination-box d-none"></div>
		<div class="opt-box text-center">
			<div class="btn btn-sm btn-link-blue" id="btnMoreComment"></div>
		</div>
	</div>
</div>
            <div class="recommend-box">
                                    <div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_39052513/article/details/100272502" target="_blank"  rel="noopener" title="SecureCRT的下载、安装（ 过程非常详细！！值得查看）" data-report-click='{"mod":"popu_387","index":"1","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_39052513\/article\/details\/100272502"}' data-report-view='{"mod":"popu_387","index":"1","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_39052513\/article\/details\/100272502"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				SecureCRT的下载、安装（ 过程非常详细！！值得查看）		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">03-03</span>
				<span class="read-num hover-hide">
					阅读数 
					2万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_39052513/article/details/100272502" target="_blank" rel="noopener" title="SecureCRT的下载、安装（ 过程非常详细！！值得查看）">
				<span class="desc oneline">SecureCRT的下载、安装和破解（ 过程非常详细！！值得查看）简单介绍下SecureCRT一、SecureCRT的下载二、SecureCRT的安装简单介绍下SecureCRTSecureCRT是一...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_39052513">来自：	<span class="blog_title"> 超Ren专属</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_44543508/article/details/102651841" target="_blank"  rel="noopener" title="Java学习的正确打开方式" data-report-click='{"mod":"popu_387","index":"2","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_44543508\/article\/details\/102651841"}' data-report-view='{"mod":"popu_387","index":"2","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_44543508\/article\/details\/102651841"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				Java学习的正确打开方式		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-08</span>
				<span class="read-num hover-hide">
					阅读数 
					29万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_44543508/article/details/102651841" target="_blank" rel="noopener" title="Java学习的正确打开方式">
				<span class="desc oneline">在博主认为，对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结，前三者博主将淋漓尽致地挥毫于这篇博客文章中，至于总结在于个人，实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_44543508">来自：	<span class="blog_title"> 程序员宜春的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/m0_37907797/article/details/102661778" target="_blank"  rel="noopener" title="程序员必须掌握的核心算法有哪些？" data-report-click='{"mod":"popu_387","index":"3","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/m0_37907797\/article\/details\/102661778"}' data-report-view='{"mod":"popu_387","index":"3","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/m0_37907797\/article\/details\/102661778"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				程序员必须掌握的核心算法有哪些？		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-26</span>
				<span class="read-num hover-hide">
					阅读数 
					40万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/m0_37907797/article/details/102661778" target="_blank" rel="noopener" title="程序员必须掌握的核心算法有哪些？">
				<span class="desc oneline">由于我之前一直强调数据结构以及算法学习的重要性，所以就有一些读者经常问我，数据结构与算法应该要学习到哪个程度呢？，说实话，这个问题我不知道要怎么回答你，主要取决于你想学习到哪些程度，不过针对这个问题，...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_37907797">来自：	<span class="blog_title"> 帅地</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/m0_37907797/article/details/102781027" target="_blank"  rel="noopener" title="大学四年自学走来，这些私藏的实用工具/学习网站我贡献出来了" data-report-click='{"mod":"popu_387","index":"4","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/m0_37907797\/article\/details\/102781027"}' data-report-view='{"mod":"popu_387","index":"4","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/m0_37907797\/article\/details\/102781027"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				大学四年自学走来，这些私藏的实用工具/学习网站我贡献出来了		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">02-26</span>
				<span class="read-num hover-hide">
					阅读数 
					45万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/m0_37907797/article/details/102781027" target="_blank" rel="noopener" title="大学四年自学走来，这些私藏的实用工具/学习网站我贡献出来了">
				<span class="desc oneline">大学四年，看课本是不可能一直看课本的了，对于学习，特别是自学，善于搜索网上的一些资源来辅助，还是非常有必要的，下面我就把这几年私藏的各种资源，网站贡献出来给你们。主要有：电子书搜索、实用工具、在线视频...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_37907797">来自：	<span class="blog_title"> 帅地</span></a>
												</span>
		</p>
	</div>
	</div>

	<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_59" data-pid="59"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="fluid"
     data-ad-layout-key="-gp-e+1c-4d+81"
     data-ad-client="ca-pub-1076724771190722"
     data-ad-slot="2356783728"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=59&a=944&c=0&k=&d=1&t=3&u=5a2520c383a44c088834a803c87de408"></div></div>
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/kebi007/article/details/103434479" target="_blank"  rel="noopener" title="程序员必备的8个学习工具" data-report-click='{"mod":"popu_387","index":"5","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/kebi007\/article\/details\/103434479"}' data-report-view='{"mod":"popu_387","index":"5","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/kebi007\/article\/details\/103434479"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				程序员必备的8个学习工具		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-07</span>
				<span class="read-num hover-hide">
					阅读数 
					3万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/kebi007/article/details/103434479" target="_blank" rel="noopener" title="程序员必备的8个学习工具">
				<span class="desc oneline">取其精华，去其糟粕</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/kebi007">来自：	<span class="blog_title"> dotNet全栈开发</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_34337272/article/details/103456234" target="_blank"  rel="noopener" title="硬核！ 逛了4年Github ，一口气把我收藏的 Java 开源项目分享给你！" data-report-click='{"mod":"popu_387","index":"6","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_34337272\/article\/details\/103456234"}' data-report-view='{"mod":"popu_387","index":"6","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_34337272\/article\/details\/103456234"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				硬核！ 逛了4年Github ，一口气把我收藏的 Java 开源项目分享给你！		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-09</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_34337272/article/details/103456234" target="_blank" rel="noopener" title="硬核！ 逛了4年Github ，一口气把我收藏的 Java 开源项目分享给你！">
				<span class="desc oneline">Awsome JavaGreat Java project on Github(Github 上非常棒的 Java 开源项目).English Version大家都知道 Github 是一个程序员福地...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_34337272">来自：	<span class="blog_title"> 不忘初心</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/u013486414/article/details/103457523" target="_blank"  rel="noopener" title="Ｂ站收藏 6.1w+！GitHub 标星 3.9k+！这门神课拯救了我薄弱的计算机基础" data-report-click='{"mod":"popu_387","index":"7","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/u013486414\/article\/details\/103457523"}' data-report-view='{"mod":"popu_387","index":"7","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/u013486414\/article\/details\/103457523"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				Ｂ站收藏 6.1w+！GitHub 标星 3.9k+！这门神课拯救了我薄弱的计算机基础		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-09</span>
				<span class="read-num hover-hide">
					阅读数 
					4万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/u013486414/article/details/103457523" target="_blank" rel="noopener" title="Ｂ站收藏 6.1w+！GitHub 标星 3.9k+！这门神课拯救了我薄弱的计算机基础">
				<span class="desc oneline">大家好，我是 Rocky0429，一个对计算机基础一无所知的蒟蒻…作为一个所谓的计算机科班出身的人来说，特别难为情的是自己的计算机基础很差，比如计算机网络当年一度差点挂掉，多亏当时的老师手下留情，给我...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/u013486414">来自：	<span class="blog_title"> Rocky0429</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_36894974/article/details/103500199" target="_blank"  rel="noopener" title="你说你懂计算机网络，那这些你都知道吗" data-report-click='{"mod":"popu_387","index":"8","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_36894974\/article\/details\/103500199"}' data-report-view='{"mod":"popu_387","index":"8","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_36894974\/article\/details\/103500199"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				你说你懂计算机网络，那这些你都知道吗		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-11</span>
				<span class="read-num hover-hide">
					阅读数 
					9405</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_36894974/article/details/103500199" target="_blank" rel="noopener" title="你说你懂计算机网络，那这些你都知道吗">
				<span class="desc oneline">今天的因特网无疑是有史以来由人类创造的、精心设计的最大系统、该系统由数以千计的计算机设备（计算机、平板电脑、智能手机）彼此相互连接构成，并且还有一批与因特网相互连接的物品比如游戏机、监控系统、汽车、医...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_36894974">来自：	<span class="blog_title"> c旋儿的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/u013486414/article/details/103507015" target="_blank"  rel="noopener" title="GitHub 总星 4w+！删库？女装？表情包？这些沙雕中文项目真是我每天快乐的源泉！" data-report-click='{"mod":"popu_387","index":"9","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/u013486414\/article\/details\/103507015"}' data-report-view='{"mod":"popu_387","index":"9","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/u013486414\/article\/details\/103507015"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				GitHub 总星 4w+！删库？女装？表情包？这些沙雕中文项目真是我每天快乐的源泉！		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-12</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/u013486414/article/details/103507015" target="_blank" rel="noopener" title="GitHub 总星 4w+！删库？女装？表情包？这些沙雕中文项目真是我每天快乐的源泉！">
				<span class="desc oneline">大家好，我是 Rocky0429，一个喜欢在 GitHub 上瞎逛的蒟蒻…好看的皮囊千篇一律，有趣的灵魂没有底线。作为全球最大的同性交友网站，GayHub GitHub 上不止有鲜活的代码，秃头的算法...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/u013486414">来自：	<span class="blog_title"> Rocky0429</span></a>
												</span>
		</p>
	</div>
	</div>

	<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_60" data-pid="60"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u3491668",
            container:  s
        });
    })();
</script>
<!-- 多条广告如下脚本只需引入一次 -->
<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" ></script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=60&a=78&c=0&k=&d=1&t=3&u=4d23065c4edb42c79d513a8b3a980f5d"></div></div>
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/ThinkWon/article/details/103522351" target="_blank"  rel="noopener" title="Redis面试题（2020最新版）" data-report-click='{"mod":"popu_387","index":"10","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/ThinkWon\/article\/details\/103522351"}' data-report-view='{"mod":"popu_387","index":"10","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/ThinkWon\/article\/details\/103522351"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				Redis面试题（2020最新版）		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-13</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/ThinkWon/article/details/103522351" target="_blank" rel="noopener" title="Redis面试题（2020最新版）">
				<span class="desc oneline">文章目录概述什么是RedisRedis有哪些数据类型Redis有哪些优缺点Redis的应用场景为什么要用 Redis /为什么要用缓存为什么要用 Redis 而不用 map/guava 做缓存?Red...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/ThinkWon">来自：	<span class="blog_title"> ThinkWon的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/ThinkWon/article/details/103592572" target="_blank"  rel="noopener" title="Java知识体系最强总结(2020版)" data-report-click='{"mod":"popu_387","index":"11","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/ThinkWon\/article\/details\/103592572"}' data-report-view='{"mod":"popu_387","index":"11","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/ThinkWon\/article\/details\/103592572"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				Java知识体系最强总结(2020版)		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-18</span>
				<span class="read-num hover-hide">
					阅读数 
					7万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/ThinkWon/article/details/103592572" target="_blank" rel="noopener" title="Java知识体系最强总结(2020版)">
				<span class="desc oneline">更新于2019-12-15 10:38:00本人从事Java开发已多年，平时有记录问题解决方案和总结知识点的习惯，整理了一些有关Java的知识体系，这不是最终版，会不定期的更新。也算是记录自己在从事编...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/ThinkWon">来自：	<span class="blog_title"> ThinkWon的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
			<div class="recommend-item-box blog-expert-recommend-box">
			<div class="d-flex">
				<div class="blog-expert-recommend">
					<div class="blog-expert">
						<div class="blog-expert-flexbox"></div>
					</div>
				</div>
			</div>
		</div>
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/weixin_38753103/article/details/103625892" target="_blank"  rel="noopener" title="外国人眼里的李子柒难道不一样？ | Alfred数据室" data-report-click='{"mod":"popu_387","index":"12","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/weixin_38753103\/article\/details\/103625892"}' data-report-view='{"mod":"popu_387","index":"12","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/weixin_38753103\/article\/details\/103625892"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				外国人眼里的李子柒难道不一样？ | Alfred数据室		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-19</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/weixin_38753103/article/details/103625892" target="_blank" rel="noopener" title="外国人眼里的李子柒难道不一样？ | Alfred数据室">
				<span class="desc oneline">李子柒又火了。分享古风田园生活的短视频频道“李子柒 Liziqi”在YouTube上获得了763万的订阅者，其短视频中传递出静谧、自给自足、远离都市的田园生活理念，赢得了无数外国人的赞赏......</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_38753103">来自：	<span class="blog_title"> Alfred数据室</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/103633705" target="_blank"  rel="noopener" title="一个“/”键，封锁了整个互联网" data-report-click='{"mod":"popu_387","index":"13","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/103633705"}' data-report-view='{"mod":"popu_387","index":"13","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/103633705"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				一个“/”键，封锁了整个互联网		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-20</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/103633705" target="_blank" rel="noopener" title="一个“/”键，封锁了整个互联网">
				<span class="desc oneline">正所谓无BUG不生活，从你含辛茹苦地码着第一行代码开始，bug就如影随形。其实，bug 被自己或者是测试人员发现都是好事；但如果是被用户发现，又或者导致了客户和公司的巨额损失……这些未知后果，就如同悬...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/JiuZhang_ninechapter">来自：	<span class="blog_title"> 九章算法的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/103670926" target="_blank"  rel="noopener" title="计算机专业的书普遍都这么贵，你们都是怎么获取资源的？" data-report-click='{"mod":"popu_387","index":"14","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/103670926"}' data-report-view='{"mod":"popu_387","index":"14","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/103670926"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				计算机专业的书普遍都这么贵，你们都是怎么获取资源的？		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-23</span>
				<span class="read-num hover-hide">
					阅读数 
					6万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/103670926" target="_blank" rel="noopener" title="计算机专业的书普遍都这么贵，你们都是怎么获取资源的？">
				<span class="desc oneline">介绍几个可以下载编程电子书籍的网站。1.GithubGithub上编程书资源很多，你可以根据类型和语言去搜索。推荐几个热门的：free-programming-books-zh_CN：58K 星的Gi...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/JiuZhang_ninechapter">来自：	<span class="blog_title"> 九章算法的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_61" data-pid="61"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="fluid"
     data-ad-layout-key="-gp-e+1c-4d+81"
     data-ad-client="ca-pub-1076724771190722"
     data-ad-slot="2356783728"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=61&a=944&c=0&k=&d=1&t=3&u=205a9fe27d5c4d409ceac2d94cc88dfd"></div></div>
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/u013486414/article/details/103753223" target="_blank"  rel="noopener" title="卸载 x 雷某度！GitHub 标星 1.5w+，从此我只用这款全能高速下载工具！" data-report-click='{"mod":"popu_387","index":"15","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/u013486414\/article\/details\/103753223"}' data-report-view='{"mod":"popu_387","index":"15","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/u013486414\/article\/details\/103753223"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				卸载 x 雷某度！GitHub 标星 1.5w+，从此我只用这款全能高速下载工具！		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-29</span>
				<span class="read-num hover-hide">
					阅读数 
					2万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/u013486414/article/details/103753223" target="_blank" rel="noopener" title="卸载 x 雷某度！GitHub 标星 1.5w+，从此我只用这款全能高速下载工具！">
				<span class="desc oneline">作者 |  Rocky0429来源 |  Python空间大家好，我是 Rocky0429，一个喜欢在网上收集各种资源的蒟蒻…网上资源眼花缭乱，下载的方式也同样千奇百怪，比如 BT 下载，磁力链接，网...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/u013486414">来自：	<span class="blog_title"> Rocky0429</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/ThinkWon/article/details/103766368" target="_blank"  rel="noopener" title="Spring Cloud入门-Oauth2授权之基于JWT完成单点登录(Hoxton版本)" data-report-click='{"mod":"popu_387","index":"16","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/ThinkWon\/article\/details\/103766368"}' data-report-view='{"mod":"popu_387","index":"16","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/ThinkWon\/article\/details\/103766368"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				Spring Cloud入门-Oauth2授权之基于JWT完成单点登录(Hoxton版本)		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">12-30</span>
				<span class="read-num hover-hide">
					阅读数 
					3310</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/ThinkWon/article/details/103766368" target="_blank" rel="noopener" title="Spring Cloud入门-Oauth2授权之基于JWT完成单点登录(Hoxton版本)">
				<span class="desc oneline">文章目录摘要单点登录简介创建oauth2-client模块修改授权服务器配置网页单点登录演示调用接口单点登录演示oauth2-client添加权限校验使用到的模块项目源码地址项目使用的Spring C...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/ThinkWon">来自：	<span class="blog_title"> ThinkWon的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/coderising/article/details/103813658" target="_blank"  rel="noopener" title="Java 14 都快来了，为什么还有这么多人固守Java 8？" data-report-click='{"mod":"popu_387","index":"17","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/coderising\/article\/details\/103813658"}' data-report-view='{"mod":"popu_387","index":"17","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/coderising\/article\/details\/103813658"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				Java 14 都快来了，为什么还有这么多人固守Java 8？		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-02</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/coderising/article/details/103813658" target="_blank" rel="noopener" title="Java 14 都快来了，为什么还有这么多人固守Java 8？">
				<span class="desc oneline">从Java 9开始，Java版本的发布就让人眼花缭乱了。每隔6个月，都会冒出一个新版本出来，Java 10 , Java 11, Java 12, Java 13， 到2020年3月份，......</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/coderising">来自：	<span class="blog_title"> 码农翻身</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qing_gee/article/details/103814819" target="_blank"  rel="noopener" title="2019年，CSDN上最受欢迎的10篇文章" data-report-click='{"mod":"popu_387","index":"18","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qing_gee\/article\/details\/103814819"}' data-report-view='{"mod":"popu_387","index":"18","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qing_gee\/article\/details\/103814819"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				2019年，CSDN上最受欢迎的10篇文章		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-03</span>
				<span class="read-num hover-hide">
					阅读数 
					8601</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qing_gee/article/details/103814819" target="_blank" rel="noopener" title="2019年，CSDN上最受欢迎的10篇文章">
				<span class="desc oneline">很多读者问我：“二哥，你怎么不整理一篇 2019 年的文章列表呢？”说实话，我有些惭愧，因为有些文章写得很烂，我自己都不好意思再重读，真的辛苦了那些老读者，不离不弃的精神打动了我（????）。当然也有...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qing_gee">来自：	<span class="blog_title"> 沉默王二</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/dfskhgalshgkajghljgh/article/details/103841693" target="_blank"  rel="noopener" title="为什么猝死的都是程序员，基本上不见产品经理猝死呢？" data-report-click='{"mod":"popu_387","index":"19","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/dfskhgalshgkajghljgh\/article\/details\/103841693"}' data-report-view='{"mod":"popu_387","index":"19","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/dfskhgalshgkajghljgh\/article\/details\/103841693"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				为什么猝死的都是程序员，基本上不见产品经理猝死呢？		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-05</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/dfskhgalshgkajghljgh/article/details/103841693" target="_blank" rel="noopener" title="为什么猝死的都是程序员，基本上不见产品经理猝死呢？">
				<span class="desc oneline">相信大家时不时听到程序员猝死的消息，但是基本上听不到产品经理猝死的消息，这是为什么呢？我们先百度搜一下：程序员猝死，出现将近700多万条搜索结果：搜索一下：产品经理猝死，只有400万条的搜索结果，从搜...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/dfskhgalshgkajghljgh">来自：	<span class="blog_title"> 曹银飞的专栏</span></a>
												</span>
		</p>
	</div>
	</div>

	<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_62" data-pid="62"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u3491668",
            container:  s
        });
    })();
</script>
<!-- 多条广告如下脚本只需引入一次 -->
<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" ></script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=62&a=78&c=0&k=&d=1&t=3&u=c59c81aae2254094925028e968c72704"></div></div>
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_35190492/article/details/103847147" target="_blank"  rel="noopener" title="毕业5年，我问遍了身边的大佬，总结了他们的学习方法" data-report-click='{"mod":"popu_387","index":"20","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_35190492\/article\/details\/103847147"}' data-report-view='{"mod":"popu_387","index":"20","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_35190492\/article\/details\/103847147"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				毕业5年，我问遍了身边的大佬，总结了他们的学习方法		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">02-13</span>
				<span class="read-num hover-hide">
					阅读数 
					2万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_35190492/article/details/103847147" target="_blank" rel="noopener" title="毕业5年，我问遍了身边的大佬，总结了他们的学习方法">
				<span class="desc oneline">我问了身边10个大佬，总结了他们的学习方法，原来成功都是有迹可循的。</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_35190492">来自：	<span class="blog_title"> 敖丙</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/alitech2017/article/details/103859969" target="_blank"  rel="noopener" title="阿里巴巴向全社会开放黑科技：“泡在水里”的服务器" data-report-click='{"mod":"popu_387","index":"21","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/alitech2017\/article\/details\/103859969"}' data-report-view='{"mod":"popu_387","index":"21","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/alitech2017\/article\/details\/103859969"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				阿里巴巴向全社会开放黑科技：“泡在水里”的服务器		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-06</span>
				<span class="read-num hover-hide">
					阅读数 
					7941</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/alitech2017/article/details/103859969" target="_blank" rel="noopener" title="阿里巴巴向全社会开放黑科技：“泡在水里”的服务器">
				<span class="desc oneline">简介： 为了让数据中心更绿色，阿里工程曾将服务器“泡在水里”进行散热，节能超70%，今天这项黑科技的神秘面纱被揭开。为了让数据中心更绿色，阿里工程曾将服务器“泡在水里”进行散热，节能超70%，今天这项...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/alitech2017">来自：	<span class="blog_title"> 阿里技术</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qing_gee/article/details/103869737" target="_blank"  rel="noopener" title="推荐10个堪称神器的学习网站" data-report-click='{"mod":"popu_387","index":"22","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qing_gee\/article\/details\/103869737"}' data-report-view='{"mod":"popu_387","index":"22","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qing_gee\/article\/details\/103869737"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				推荐10个堪称神器的学习网站		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">02-25</span>
				<span class="read-num hover-hide">
					阅读数 
					12万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qing_gee/article/details/103869737" target="_blank" rel="noopener" title="推荐10个堪称神器的学习网站">
				<span class="desc oneline">每天都会收到很多读者的私信，问我：“二哥，有什么推荐的学习网站吗？最近很浮躁，手头的一些网站都看烦了，想看看二哥这里有什么新鲜货。”今天一早做了个恶梦，梦到被老板辞退了。虽然说在我们公司，只有我辞退老...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qing_gee">来自：	<span class="blog_title"> 沉默王二</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/sinat_33921105/article/details/103883774" target="_blank"  rel="noopener" title="这些软件太强了，Windows必装！尤其程序员！" data-report-click='{"mod":"popu_387","index":"23","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/sinat_33921105\/article\/details\/103883774"}' data-report-view='{"mod":"popu_387","index":"23","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/sinat_33921105\/article\/details\/103883774"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				这些软件太强了，Windows必装！尤其程序员！		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-08</span>
				<span class="read-num hover-hide">
					阅读数 
					4万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/sinat_33921105/article/details/103883774" target="_blank" rel="noopener" title="这些软件太强了，Windows必装！尤其程序员！">
				<span class="desc oneline">Windows可谓是大多数人的生产力工具，集娱乐办公于一体，虽然在程序员这个群体中都说苹果是信仰，但是大部分不都是从Windows过来的，而且现在依然有很多的程序员用Windows。所以，今天我就把我...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/sinat_33921105">来自：	<span class="blog_title"> 编码之外的技术博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/sinat_33921105/article/details/103899234" target="_blank"  rel="noopener" title="大学四年因为知道了这32个网站，我成了别人眼中的大神！" data-report-click='{"mod":"popu_387","index":"24","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/sinat_33921105\/article\/details\/103899234"}' data-report-view='{"mod":"popu_387","index":"24","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/sinat_33921105\/article\/details\/103899234"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				大学四年因为知道了这32个网站，我成了别人眼中的大神！		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-08</span>
				<span class="read-num hover-hide">
					阅读数 
					14万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/sinat_33921105/article/details/103899234" target="_blank" rel="noopener" title="大学四年因为知道了这32个网站，我成了别人眼中的大神！">
				<span class="desc oneline">依稀记得，毕业那天，我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”，哎呀，别提当时多开心啦????，嗯，我们导员是所有导员中最帅的一个，真的????不过，导员说的是实话，很多人都叫我大神...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/sinat_33921105">来自：	<span class="blog_title"> 编码之外的技术博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/xianaoshi/article/details/103900636" target="_blank"  rel="noopener" title="互联网人每天要面对多少变态需求？" data-report-click='{"mod":"popu_387","index":"25","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/xianaoshi\/article\/details\/103900636"}' data-report-view='{"mod":"popu_387","index":"25","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/xianaoshi\/article\/details\/103900636"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				互联网人每天要面对多少变态需求？		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-08</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/xianaoshi/article/details/103900636" target="_blank" rel="noopener" title="互联网人每天要面对多少变态需求？">
				<span class="desc oneline">互联网人个个都是三头六臂每天可能会面对各种不合理甚至变态的需求承受常人无法想象的压力-我们在社群里征集了各种变态需求，汇编成了合集--以上情况可能存在部分夸张但世界的多样性、人类的复杂性......</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/xianaoshi">来自：	<span class="blog_title"> 吓脑湿</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_36903042/article/details/103917724" target="_blank"  rel="noopener" title="自学系列 | 就谈知识体系！" data-report-click='{"mod":"popu_387","index":"26","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_36903042\/article\/details\/103917724"}' data-report-view='{"mod":"popu_387","index":"26","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_36903042\/article\/details\/103917724"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				自学系列 | 就谈知识体系！		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-09</span>
				<span class="read-num hover-hide">
					阅读数 
					6435</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_36903042/article/details/103917724" target="_blank" rel="noopener" title="自学系列 | 就谈知识体系！">
				<span class="desc oneline">阅读本文大约需要 6 分钟这一篇是俺分享的《自学系列》中最后一篇，坚持更新整个系列下来，不仅给一些读者带了感悟，俺也从反思和思考的过程中又收获了一些新的自我认识和价值。分享过的前几篇如下......</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_36903042">来自：	<span class="blog_title"> 小鹿动画学编程</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/103922107" target="_blank"  rel="noopener" title="在西雅图工作一年，口袋还剩多少钱？" data-report-click='{"mod":"popu_387","index":"27","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/103922107"}' data-report-view='{"mod":"popu_387","index":"27","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/103922107"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				在西雅图工作一年，口袋还剩多少钱？		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-09</span>
				<span class="read-num hover-hide">
					阅读数 
					8431</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/103922107" target="_blank" rel="noopener" title="在西雅图工作一年，口袋还剩多少钱？">
				<span class="desc oneline">都说湾区的living cost高，10w的税前年薪最后能省下2w都是万幸，更别提买房买车、成家立业了。不奋斗个五六年拿不了高薪，也很难摸索得出一套省钱的方法。    而在华盛顿州的西雅图living...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/JiuZhang_ninechapter">来自：	<span class="blog_title"> 九章算法的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_34337272/article/details/103928638" target="_blank"  rel="noopener" title="良心推荐，我珍藏的一些Chrome插件" data-report-click='{"mod":"popu_387","index":"28","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_34337272\/article\/details\/103928638"}' data-report-view='{"mod":"popu_387","index":"28","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_34337272\/article\/details\/103928638"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				良心推荐，我珍藏的一些Chrome插件		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-10</span>
				<span class="read-num hover-hide">
					阅读数 
					2万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_34337272/article/details/103928638" target="_blank" rel="noopener" title="良心推荐，我珍藏的一些Chrome插件">
				<span class="desc oneline">上次搬家的时候，发了一个朋友圈，附带的照片中不小心暴露了自己的 Chrome 浏览器插件之多，于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。我下面就把我日常工作和学习中经常用到的一些  Chr...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_34337272">来自：	<span class="blog_title"> 不忘初心</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/dengjin20104042056/article/details/103930275" target="_blank"  rel="noopener" title="【程序人生】程序员接私活常用平台汇总" data-report-click='{"mod":"popu_387","index":"29","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/dengjin20104042056\/article\/details\/103930275"}' data-report-view='{"mod":"popu_387","index":"29","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/dengjin20104042056\/article\/details\/103930275"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				【程序人生】程序员接私活常用平台汇总		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-10</span>
				<span class="read-num hover-hide">
					阅读数 
					3万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/dengjin20104042056/article/details/103930275" target="_blank" rel="noopener" title="【程序人生】程序员接私活常用平台汇总">
				<span class="desc oneline">00. 目录文章目录00. 目录01. 前言02. 程序员客栈03. 码市04. 猪八戒网05. 开源众包06.  智城外包网07. 实现网08. 猿急送09. 人人开发10. 开发邦11. 电鸭社区...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/dengjin20104042056">来自：	<span class="blog_title"> 嵌入式开发工程师---欢迎大家一起交流</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_36894974/article/details/103930478" target="_blank"  rel="noopener" title="看完这篇HTTP，跟面试官扯皮就没问题了" data-report-click='{"mod":"popu_387","index":"30","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_36894974\/article\/details\/103930478"}' data-report-view='{"mod":"popu_387","index":"30","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_36894974\/article\/details\/103930478"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				看完这篇HTTP，跟面试官扯皮就没问题了		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-10</span>
				<span class="read-num hover-hide">
					阅读数 
					2万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_36894974/article/details/103930478" target="_blank" rel="noopener" title="看完这篇HTTP，跟面试官扯皮就没问题了">
				<span class="desc oneline">我是一名程序员，我的主要编程语言是 Java，我更是一名 Web 开发人员，所以我必须要了解 HTTP，所以本篇文章就来带你从 HTTP 入门到进阶，看完让你有一种恍然大悟、醍醐灌顶的感觉。最初在有网...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_36894974">来自：	<span class="blog_title"> c旋儿的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/weixin_43570367/article/details/103963249" target="_blank"  rel="noopener" title="史上最全的IDEA快捷键总结" data-report-click='{"mod":"popu_387","index":"31","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/weixin_43570367\/article\/details\/103963249"}' data-report-view='{"mod":"popu_387","index":"31","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/weixin_43570367\/article\/details\/103963249"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				史上最全的IDEA快捷键总结		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-13</span>
				<span class="read-num hover-hide">
					阅读数 
					3万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/weixin_43570367/article/details/103963249" target="_blank" rel="noopener" title="史上最全的IDEA快捷键总结">
				<span class="desc oneline">现在Idea成了主流开发工具，这篇博客对其使用的快捷键做了总结，希望对大家的开发工作有所帮助。...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_43570367">来自：	<span class="blog_title"> 扬帆向海的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/yellowzf3/article/details/103982287" target="_blank"  rel="noopener" title="2020年，冯唐49岁：我给20、30岁IT职场年轻人的建议" data-report-click='{"mod":"popu_387","index":"32","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/yellowzf3\/article\/details\/103982287"}' data-report-view='{"mod":"popu_387","index":"32","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/yellowzf3\/article\/details\/103982287"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				2020年，冯唐49岁：我给20、30岁IT职场年轻人的建议		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">02-07</span>
				<span class="read-num hover-hide">
					阅读数 
					5万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/yellowzf3/article/details/103982287" target="_blank" rel="noopener" title="2020年，冯唐49岁：我给20、30岁IT职场年轻人的建议">
				<span class="desc oneline">点击“技术领导力”关注∆每天早上8:30推送作者|Mr.K 编辑| Emma来源|技术领导力(ID：jishulingdaoli)前天的推文《冯唐：职场人35岁以后，方法论比经验重要》，收到了不少读者...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/yellowzf3">来自：	<span class="blog_title"> 技术领导力</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/tuzongxun/article/details/104004186" target="_blank"  rel="noopener" title="三十而立~2019年终总结" data-report-click='{"mod":"popu_387","index":"33","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/tuzongxun\/article\/details\/104004186"}' data-report-view='{"mod":"popu_387","index":"33","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/tuzongxun\/article\/details\/104004186"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				三十而立~2019年终总结		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-16</span>
				<span class="read-num hover-hide">
					阅读数 
					1673</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/tuzongxun/article/details/104004186" target="_blank" rel="noopener" title="三十而立~2019年终总结">
				<span class="desc oneline">岁月一去不复返，转眼就要换新年；新年又是新气象，做个总结好心安！又到了一年年关，又到了总结的时候，有的人有这个习惯，有的人不以为然，而我，算是有这个习惯的人之一。到了这个时候，不总结一下，不写点什么，...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/tuzongxun">来自：	<span class="blog_title"> 涂宗勋的技术博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/104011567" target="_blank"  rel="noopener" title="推荐一些有趣的在线编程游戏" data-report-click='{"mod":"popu_387","index":"34","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/104011567"}' data-report-view='{"mod":"popu_387","index":"34","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/104011567"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				推荐一些有趣的在线编程游戏		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-16</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/104011567" target="_blank" rel="noopener" title="推荐一些有趣的在线编程游戏">
				<span class="desc oneline">1.Robocode让坦克们互相博弈的游戏，你可以看到它们飞奔，碾碎一切挡道的东西。机器人配有雷达与火炮，选手在躲避对手进攻的同时攻击对手，以此来较量得分的多少。这个游戏很有意思，曾经令我沉迷…你可以...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/JiuZhang_ninechapter">来自：	<span class="blog_title"> 九章算法的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/104017082" target="_blank"  rel="noopener" title="“亚麻加班，谷歌养老”， 同样是码农差距也太大了！" data-report-click='{"mod":"popu_387","index":"35","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/104017082"}' data-report-view='{"mod":"popu_387","index":"35","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/JiuZhang_ninechapter\/article\/details\/104017082"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				“亚麻加班，谷歌养老”， 同样是码农差距也太大了！		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-16</span>
				<span class="read-num hover-hide">
					阅读数 
					8230</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/JiuZhang_ninechapter/article/details/104017082" target="_blank" rel="noopener" title="“亚麻加班，谷歌养老”， 同样是码农差距也太大了！">
				<span class="desc oneline">有钱、“科技大佬”似乎是外界对大厂码农这份职业的第一印象。但若是在相亲市场转一圈，你可能会听到这样一个声音：你是码农啊？加班很多吧。    在大家的心中，“加班多”也渐渐成为了码农的一种身份属性。  ...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/JiuZhang_ninechapter">来自：	<span class="blog_title"> 九章算法的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/hebtu666/article/details/104035274" target="_blank"  rel="noopener" title="那些年，我们信了课本里的那些鬼话" data-report-click='{"mod":"popu_387","index":"36","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/hebtu666\/article\/details\/104035274"}' data-report-view='{"mod":"popu_387","index":"36","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/hebtu666\/article\/details\/104035274"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				那些年，我们信了课本里的那些鬼话		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-20</span>
				<span class="read-num hover-hide">
					阅读数 
					8707</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/hebtu666/article/details/104035274" target="_blank" rel="noopener" title="那些年，我们信了课本里的那些鬼话">
				<span class="desc oneline">教材永远都是有错误的，从小学到大学，我们不断的学习了很多错误知识。斑羚飞渡在我们学习的很多小学课文里，有很多是错误文章，或者说是假课文。像《斑羚飞渡》：随着镰刀头羊的那声吼叫，整个斑羚群迅速分成两拨，...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/hebtu666">来自：	<span class="blog_title"> hebtu666</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_36894974/article/details/104044932" target="_blank"  rel="noopener" title="一文带你看清 HTTP 所有概念" data-report-click='{"mod":"popu_387","index":"37","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_36894974\/article\/details\/104044932"}' data-report-view='{"mod":"popu_387","index":"37","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_36894974\/article\/details\/104044932"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				一文带你看清 HTTP 所有概念		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-19</span>
				<span class="read-num hover-hide">
					阅读数 
					1万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_36894974/article/details/104044932" target="_blank" rel="noopener" title="一文带你看清 HTTP 所有概念">
				<span class="desc oneline">上一篇文章我们大致讲解了一下 HTTP 的基本特征和使用，大家反响很不错，那么本篇文章我们就来深究一下 HTTP 的特性。我们接着上篇文章没有说完的 HTTP 标头继续来介绍（此篇文章会介绍所有标头的...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_36894974">来自：	<span class="blog_title"> c旋儿的博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/qq_35190492/article/details/104047424" target="_blank"  rel="noopener" title="【蘑菇街技术部年会】程序员与女神共舞，鼻血再次没止住。（文末内推）" data-report-click='{"mod":"popu_387","index":"38","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_35190492\/article\/details\/104047424"}' data-report-view='{"mod":"popu_387","index":"38","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/qq_35190492\/article\/details\/104047424"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				【蘑菇街技术部年会】程序员与女神共舞，鼻血再次没止住。（文末内推）		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-20</span>
				<span class="read-num hover-hide">
					阅读数 
					6820</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/qq_35190492/article/details/104047424" target="_blank" rel="noopener" title="【蘑菇街技术部年会】程序员与女神共舞，鼻血再次没止住。（文末内推）">
				<span class="desc oneline">蘑菇街技术部的年会，别开生面，一样全是美女。</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_35190492">来自：	<span class="blog_title"> 敖丙</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/alitech2017/article/details/104049395" target="_blank"  rel="noopener" title="那个在阿里养猪的工程师，5年了……" data-report-click='{"mod":"popu_387","index":"39","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/alitech2017\/article\/details\/104049395"}' data-report-view='{"mod":"popu_387","index":"39","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/alitech2017\/article\/details\/104049395"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				那个在阿里养猪的工程师，5年了……		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-20</span>
				<span class="read-num hover-hide">
					阅读数 
					4774</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/alitech2017/article/details/104049395" target="_blank" rel="noopener" title="那个在阿里养猪的工程师，5年了……">
				<span class="desc oneline">简介： 在阿里，走过1825天，没有趴下，依旧斗志满满，被称为“五年陈”。他们会被授予一枚戒指，过程就叫做“授戒仪式”。今天，咱们听听阿里的那些“五年陈”们的故事。下一个五年，猪圈见！我就是那个在养猪...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/alitech2017">来自：	<span class="blog_title"> 阿里技术</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
<div class="recommend-item-box type_blog clearfix">
	<div class="content">
		<a href="https://blog.csdn.net/sinat_33921105/article/details/104066631" target="_blank"  rel="noopener" title="作为一个程序员，CPU的这些硬核知识你必须会！" data-report-click='{"mod":"popu_387","index":"40","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/sinat_33921105\/article\/details\/104066631"}' data-report-view='{"mod":"popu_387","index":"40","strategy":"BlogCommendHotData","dest":"https:\/\/blog.csdn.net\/sinat_33921105\/article\/details\/104066631"}' data-report-query='depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task' >
		<h4 class="text-truncate oneline">
				作为一个程序员，CPU的这些硬核知识你必须会！		</h4>
		<div class="info-box d-flex align-content-center">
			<p class="date-and-readNum oneline">
				<span class="date hover-show">01-21</span>
				<span class="read-num hover-hide">
					阅读数 
					6万+</span>
				</p>
			</div>
		</a>
		<p class="content">
			<a href="https://blog.csdn.net/sinat_33921105/article/details/104066631" target="_blank" rel="noopener" title="作为一个程序员，CPU的这些硬核知识你必须会！">
				<span class="desc oneline">CPU对每个程序员来说，是个既熟悉又陌生的东西？如果你只知道CPU是中央处理器的话，那可能对你并没有什么用，那么作为程序员的我们，必须要搞懂的就是CPU这家伙是如何运行的，尤其要搞懂它里面的寄存器是怎...</span>
			</a>
			<span class="blog_title_box oneline ">
									<span class="type-show type-show-blog type-show-after">博文</span>
											<a target="_blank" rel="noopener" href="https://blog.csdn.net/sinat_33921105">来自：	<span class="blog_title"> 编码之外的技术博客</span></a>
												</span>
		</p>
	</div>
	</div>

	
	
                    <div class="recommend-item-box type_hot_word">
                    <div class="content clearfix">
                        <div class="float-left">
                                                                                <span>
                                <a href="https://blog.csdn.net/yilovexing/article/details/80577510" target="_blank">
                                python</a>
                            </span>
                                                        <span>
                                <a href="https://blog.csdn.net/slwbcsdn/article/details/53458352" target="_blank">
                                json</a>
                            </span>
                                                        <span>
                                <a href="https://blog.csdn.net/csdnnews/article/details/83753246" target="_blank">
                                java</a>
                            </span>
                                                        <span>
                                <a href="https://blog.csdn.net/qq_35077512/article/details/88952519" target="_blank">
                                mysql</a>
                            </span>
                                                        <span>
                                <a href="https://blog.csdn.net/pdcfighting/article/details/80297499" target="_blank">
                                pycharm</a>
                            </span>
                                                        <span>
                                <a href="https://blog.csdn.net/sinyu890807/article/details/97142065" target="_blank">
                                android</a>
                            </span>
                                                        <span>
                                <a href="https://blog.csdn.net/gexiaoyizhimei/article/details/100122368" target="_blank">
                                linux</a>
                            </span>
                                                        <span>
                                <a href="https://download.csdn.net/download/xhg_gszs/10978826" target="_blank">
                                json格式</a>
                            </span>
                                                    
                                                                                <span>
                                <a href="https://www.csdn.net/gather_14/NtzaUg3sLWRvd25sb2Fk.html" target="_blank">
                                c#常量定义规则</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_1b/NtzaUg4sLWRvd25sb2Fk.html" target="_blank">
                                c#发送按键</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_2f/NtzaUg5sLWJsb2cO0O0O.html" target="_blank">
                                c#记住帐号密码</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_12/NtzaYgwsLWRvd25sb2Fk.html" target="_blank">
                                c#mvc框架搭建</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_10/NtzaYgysLWRvd25sb2Fk.html" target="_blank">
                                c#改变td值</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_1e/NtzaYgzsLWRvd25sb2Fk.html" target="_blank">
                                c#怎么读取html文件</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_15/NtzaYg0sLWRvd25sb2Fk.html" target="_blank">
                                c#如何跳出整个循环</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_1d/NtzaYg1sLWRvd25sb2Fk.html" target="_blank">
                                c# throw的用法</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_19/NtzaYg2sLWRvd25sb2Fk.html" target="_blank">
                                c# 判断域名端口</a>
                            </span>
                                                        <span>
                                <a href="https://www.csdn.net/gather_2f/NtzaYg3sLWJsb2cO0O0O.html" target="_blank">
                                c#前景怎么样</a>
                            </span>
                                                                            </div>
                    </div>
                    </div>
                                    <div class="recommend-loading-box">
                    <img src='https://csdnimg.cn/release/phoenix/images/feedLoading.gif'>
                </div>
                <div class="recommend-end-box">
                    <p class="text-center">没有更多推荐了，<a href="https://blog.csdn.net/" class="c-blue c-blue-hover c-blue-focus">返回首页</a></p>
                </div>
            </div>
                            <div class="template-box">
                    <span>©️2019 CSDN</span><span class="point"></span>
                <span>皮肤主题: 大白</span>
                <span> 设计师:
                                            CSDN官方博客                                    </span>
                </div>
                    </main>
        <aside class="blog_container_aside">
	<!--主页引入-->

    <div id="asideProfile" class="aside-box">
    <!-- <h3 class="aside-title">个人资料</h3> -->
    <div class="profile-intro d-flex">
        <div class="avatar-box d-flex justify-content-center flex-column">
            <a href="https://blog.csdn.net/clh604"  data-report-click='{"mod":"popu_379","dest":"https://blog.csdn.net/clh604"}'>
                <img src="https://profile.csdnimg.cn/1/C/8/3_clh604" class="avatar_pic" username='clh604'>
                                    <img src="https://g.csdnimg.cn/static/user-reg-year/1x/12.png" class="user-years">
                            </a>
                    </div>
        <div class="user-info d-flex flex-column profile-intro-name-box">
            <div>
                                <span class="name csdn-tracking-statistics tracking-click "   data-report-click='{"mod":"popu_379","dest":"https://blog.csdn.net/clh604"}' username='clh604'>
                    <a href="https://blog.csdn.net/clh604" class="" id="uid" title='cclehui'>
                    cclehui                    </a>
                </span>
            </div>
            <div class="profile-intro-name-boxFooter">
                                                <span class="personal-home-page" style='right:-96px;'><a target="_blank" href="https://me.csdn.net/clh604">TA的个人主页 ></a></span>
                            </div>
        </div>
    </div>
    <div class="data-info d-flex item-tiling">
                <dl class="text-center" title="120">
                            <dt><a href="https://blog.csdn.net/clh604" data-report-query="t=1">原创</a></dt>
                <dd><a href="https://blog.csdn.net/clh604" data-report-query="t=1"><span class="count">120</span></a></dd>
                    </dl>
        <dl class="text-center" id="fanBox" title="295">
            <dt>粉丝</dt>
            <dd><span class="count" id="fan">295</span></dd>
        </dl>
        <dl class="text-center" title="63">
            <dt>获赞</dt>
            <dd><span class="count">63</span></dd>
        </dl>
        <dl class="text-center" title="159">
            <dt>评论</dt>
            <dd><span class="count">159</span></dd>
        </dl>
        <dl class="text-center" title="2056275">
            <dt>访问</dt>
            <dd><span class="count">205万+</span></dd>
        </dl>
    </div>
    <div class="grade-box clearfix">
        <dl class="aside-box-footerClassify">
            <dt>等级:</dt>
            <dd>
                <a href="https://blog.csdn.net/home/help.html#level" title="7级,点击查看等级说明" target="_blank">
                    <svg class="icon icon-level" aria-hidden="true">
                        <use xlink:href="#csdnc-bloglevel-7"></use>
                    </svg>
                </a>
            </dd>
        </dl>
        <dl title="92515">
            <dt>周排名:</dt>
            <dd>
                <a class="grade-box-rankA" href="https://blog.csdn.net/rank/writing_rank" target="_blank">
                    9万+                </a>
            </dd>
        </dl>
        <dl>
            <dt>积分:</dt>
            <dd title="11718">
                1万+            </dd>
        </dl>
        <dl title="2469">
            <dt>总排名:</dt>
            <dd>
                <a class="grade-box-rankA" href="https://blog.csdn.net/rank/writing_rank_total" target="_blank">
                    2469                </a>
            </dd>
        </dl>
    </div>
    <div class="aside-box-footer">
                
    </div>
        <div class="profile-intro-name-boxOpration">
        <div class="opt-letter-watch-box">
                            <a class="personal-watch bt-button" id="btnAttent" data-report-click='{"mod":"popu_379"}'>关注</a>
                    </div>
        <div class='opt-letter-watch-box'>
            <a class="bt-button btn-red-hollow personal-letter" href=https://im.csdn.net/im/main.html?userName=clh604 target="_blank" rel="noopener">私信</a>
        </div>
    </div>
    </div>
<script>
    function watchBtnChange(flag, username) {
        $('span.blog-expert-button-follow').each(function(index) {
            if (flag) {
                if ($(this).attr("data-name") == username) {
                    $(this).html('<span class="hover-hide">已关注</span><span class="hover-show">取消</span>').removeClass('btn-red-follow').addClass('btn-gray-follow attented');
                }
            } else {
                if ($(this).attr("data-name") == username) {
                    $(this).html("关注").addClass('btn-red-follow').removeClass('btn-gray-follow attented');
                }
            }
        })
        if (username == $('p.csdn-tracking-statistics').attr("username")) {
            if (flag) {
                $('#btnAttent').addClass("attented").text("已关注").removeClass('btn-red-hollow').addClass('btn-gray-hollow');
                changeFans(1)
            } else {
                $('#btnAttent').text("关注").addClass('btn-red-hollow').removeClass('btn-gray-hollow attented');
                changeFans(-1)
            }
        }

    }

    function changeFans(num) {
        if ($('#fan').text().indexOf('+') < 0) {
            $('#fan').text(parseInt($('#fan').text()) + num);
        } else {
            $('#fanBox').attr('title', parseInt($('#fanBox').attr('title')) + num);
        }
    }
    window.csdn = window.csdn ? window.csdn : {};
    window.csdn.watchBtnChange = watchBtnChange;
</script><div class="csdn-tracking-statistics mb8 box-shadow" data-pid="blog" data-report-click='{"mod":"popu_4"}' data-report-view='{"mod":"popu_4"}' style="height:250px;">
    <div class="aside-content text-center" id="cpro_u2734133">
        <div id="kp_box_56" data-pid="56"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u3032528",
            container:  s
        });
    })();
</script>
<!-- 多条广告如下脚本只需引入一次 -->
<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" ></script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=56&a=76&c=0&k=&d=1&t=3&u=9e842f83a47a4d0faa21dc6a562510bf"></div>    </div>
</div>
<div id="asideNewArticle" class="aside-box">
    <h3 class="aside-title">最新文章</h3>
    <div class="aside-content">
        <ul class="inf_list clearfix">
                        <li class="clearfix">
                <a data-report-click='{"mod":"popu_382","dest":"https://blog.csdn.net/clh604/article/details/45575917"}' href="https://blog.csdn.net/clh604/article/details/45575917" target="_blank" >
                                        windows环境下php和Php扩展编译,扩展dll文件编译                </a>
            </li>
                        <li class="clearfix">
                <a data-report-click='{"mod":"popu_382","dest":"https://blog.csdn.net/clh604/article/details/42420637"}' href="https://blog.csdn.net/clh604/article/details/42420637" target="_blank" >
                                        php源码-常量                </a>
            </li>
                        <li class="clearfix">
                <a data-report-click='{"mod":"popu_382","dest":"https://blog.csdn.net/clh604/article/details/41850157"}' href="https://blog.csdn.net/clh604/article/details/41850157" target="_blank" >
                                        php变量引用和计数_refcount_gc和is_ref_gc                </a>
            </li>
                        <li class="clearfix">
                <a data-report-click='{"mod":"popu_382","dest":"https://blog.csdn.net/clh604/article/details/41827061"}' href="https://blog.csdn.net/clh604/article/details/41827061" target="_blank" >
                                        从源码区别include 与require 的不同                </a>
            </li>
                        <li class="clearfix">
                <a data-report-click='{"mod":"popu_382","dest":"https://blog.csdn.net/clh604/article/details/39401249"}' href="https://blog.csdn.net/clh604/article/details/39401249" target="_blank" >
                                        php memcached使用中的坑                </a>
            </li>
                    </ul>
    </div>
</div>
    <div id="asideCategory" class="aside-box flexible-box"
         style="">
    <h3 class="aside-title">分类专栏</h3>
    <div class="aside-content">
        <ul>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1275072.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1275072.html"}'
                                               href="https://blog.csdn.net/clh604/category_1275072.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918140129601.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">php</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">49篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1320287.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1320287.html"}'
                                               href="https://blog.csdn.net/clh604/category_1320287.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918140129601.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">html5</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">10篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2757475.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2757475.html"}'
                                               href="https://blog.csdn.net/clh604/category_2757475.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151101105.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">Php源码</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">2篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1261195.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1261195.html"}'
                                               href="https://blog.csdn.net/clh604/category_1261195.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918140158853.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">magento</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">35篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1331443.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1331443.html"}'
                                               href="https://blog.csdn.net/clh604/category_1331443.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151043371.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">网络/网络安全/缓存/消息队列</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">15篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1934875.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1934875.html"}'
                                               href="https://blog.csdn.net/clh604/category_1934875.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151124774.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">服务器/架构</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">7篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1917131.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1917131.html"}'
                                               href="https://blog.csdn.net/clh604/category_1917131.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918140158853.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">算法</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">2篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1403334.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1403334.html"}'
                                               href="https://blog.csdn.net/clh604/category_1403334.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918140158853.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">mysql/redis/mongo</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">17篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2233085.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2233085.html"}'
                                               href="https://blog.csdn.net/clh604/category_2233085.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918140145169.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">Tcp/ip协议</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">2篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1864065.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1864065.html"}'
                                               href="https://blog.csdn.net/clh604/category_1864065.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151124774.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">移动开发</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">4篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1315679.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1315679.html"}'
                                               href="https://blog.csdn.net/clh604/category_1315679.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151124774.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">linux</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">13篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1469421.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1469421.html"}'
                                               href="https://blog.csdn.net/clh604/category_1469421.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151124774.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">django</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">20篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1284923.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1284923.html"}'
                                               href="https://blog.csdn.net/clh604/category_1284923.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918135101160.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">css</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">3篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1291272.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1291272.html"}'
                                               href="https://blog.csdn.net/clh604/category_1291272.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918140129601.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">js</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">10篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1307582.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1307582.html"}'
                                               href="https://blog.csdn.net/clh604/category_1307582.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151101105.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">div居中对齐</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">1篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1323370.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1323370.html"}'
                                               href="https://blog.csdn.net/clh604/category_1323370.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151101105.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">node.js</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">6篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1346847.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1346847.html"}'
                                               href="https://blog.csdn.net/clh604/category_1346847.html">
                                                    <img src="https://img-blog.csdnimg.cn/2019092715111047.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">SEO</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">1篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1357126.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1357126.html"}'
                                               href="https://blog.csdn.net/clh604/category_1357126.html">
                                                    <img src="https://img-blog.csdnimg.cn/2019092715111047.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">程序员生活日志</span>
                                                    </span>
                        <!--####是否付费-->
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1394296.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1394296.html"}'
                                               href="https://blog.csdn.net/clh604/category_1394296.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918135101160.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">discuz</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">1篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1448035.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1448035.html"}'
                                               href="https://blog.csdn.net/clh604/category_1448035.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151117521.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">nginx</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">4篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1499847.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1499847.html"}'
                                               href="https://blog.csdn.net/clh604/category_1499847.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151053287.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">python</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">3篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1513755.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1513755.html"}'
                                               href="https://blog.csdn.net/clh604/category_1513755.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151117521.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">地图</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">7篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1602861.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1602861.html"}'
                                               href="https://blog.csdn.net/clh604/category_1602861.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190918140145169.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">yii</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">2篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1579057.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1579057.html"}'
                                               href="https://blog.csdn.net/clh604/category_1579057.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151026427.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">wordpress</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">2篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2336795.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2336795.html"}'
                                               href="https://blog.csdn.net/clh604/category_2336795.html">
                                                    <img src="https://img-blog.csdnimg.cn/2019091813595558.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">企业级搜索</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">5篇</span>
                                            </a>
                </li>
                            <li class="">
                                        <a class="clearfix" 
                                                    data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2343383.html"}'
                            data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2343383.html"}'
                                               href="https://blog.csdn.net/clh604/category_2343383.html">
                                                    <img src="https://img-blog.csdnimg.cn/20190927151101105.png" alt="">
                                                <!--####是否付费-->
                        <span class="title oneline"><span class="text">开源项目</span>
                                                    </span>
                        <!--####是否付费-->
                                                    <span class="count float-right">1篇</span>
                                            </a>
                </li>
                    </ul>
    </div>
        <p class="text-center">
        <a class="btn btn-link-blue flexible-btn" data-fbox="aside-archive">展开</a>
    </p>
    </div>
<div id="asideArchive" class="aside-box flexible-box">
    <h3 class="aside-title">归档</h3>
    <div class="aside-content">
        <ul class="archive-list">
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2015/05" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2015/05"}'>
                    2015年5月                    <span class="count float-right">1篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2015/01" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2015/01"}'>
                    2015年1月                    <span class="count float-right">1篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/12" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/12"}'>
                    2014年12月                    <span class="count float-right">2篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/09" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/09"}'>
                    2014年9月                    <span class="count float-right">2篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/08" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/08"}'>
                    2014年8月                    <span class="count float-right">3篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/07" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/07"}'>
                    2014年7月                    <span class="count float-right">3篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/06" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/06"}'>
                    2014年6月                    <span class="count float-right">6篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/05" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/05"}'>
                    2014年5月                    <span class="count float-right">3篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/04" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/04"}'>
                    2014年4月                    <span class="count float-right">6篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/03" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/03"}'>
                    2014年3月                    <span class="count float-right">8篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/02" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/02"}'>
                    2014年2月                    <span class="count float-right">15篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2014/01" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2014/01"}'>
                    2014年1月                    <span class="count float-right">3篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/11" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/11"}'>
                    2013年11月                    <span class="count float-right">11篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/09" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/09"}'>
                    2013年9月                    <span class="count float-right">6篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/08" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/08"}'>
                    2013年8月                    <span class="count float-right">8篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/07" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/07"}'>
                    2013年7月                    <span class="count float-right">24篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/06" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/06"}'>
                    2013年6月                    <span class="count float-right">10篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/05" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/05"}'>
                    2013年5月                    <span class="count float-right">7篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/04" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/04"}'>
                    2013年4月                    <span class="count float-right">11篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/03" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/03"}'>
                    2013年3月                    <span class="count float-right">6篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/02" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/02"}'>
                    2013年2月                    <span class="count float-right">3篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2013/01" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2013/01"}'>
                    2013年1月                    <span class="count float-right">27篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2012/12" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2012/12"}'>
                    2012年12月                    <span class="count float-right">15篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2012/11" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2012/11"}'>
                    2012年11月                    <span class="count float-right">19篇</span>
                </a>
            </li>
                        <!--归档统计-->
            <li>
                <a href="https://blog.csdn.net/clh604/article/month/2012/10" data-report-click='{"mod":"popu_538","dest":"https://blog.csdn.net/clh604/article/month/2012/10"}'>
                    2012年10月                    <span class="count float-right">6篇</span>
                </a>
            </li>
                    </ul>
    </div>
        <p class="text-center">
        <a class="btn btn-link-blue flexible-btn" data-fbox="aside-archive">展开</a>
    </p>
    </div>
<div id="asideHotArticle" class="aside-box">
	<h3 class="aside-title">热门文章</h3>
	<div class="aside-content">
		<ul class="hotArticle-list">
							<li>

                    <a
                    data-report-click='{"mod":"popu_541","dest":"https://blog.csdn.net/clh604/article/details/8536059"}' 
                     href="https://blog.csdn.net/clh604/article/details/8536059" >
                                                html5 canvas 详细使用教程                    </a>
					<p class="read">阅读数 <span>203679</span></p>
				</li>
							<li>

                    <a
                    data-report-click='{"mod":"popu_541","dest":"https://blog.csdn.net/clh604/article/details/9412291"}' 
                     href="https://blog.csdn.net/clh604/article/details/9412291" >
                                                百度地图－修改marker图标(icon)                    </a>
					<p class="read">阅读数 <span>127726</span></p>
				</li>
							<li>

                    <a
                    data-report-click='{"mod":"popu_541","dest":"https://blog.csdn.net/clh604/article/details/22179907"}' 
                     href="https://blog.csdn.net/clh604/article/details/22179907" >
                                                https原理：证书传递、验证和数据加密、解密过程解析                    </a>
					<p class="read">阅读数 <span>127346</span></p>
				</li>
							<li>

                    <a
                    data-report-click='{"mod":"popu_541","dest":"https://blog.csdn.net/clh604/article/details/20365967"}' 
                     href="https://blog.csdn.net/clh604/article/details/20365967" >
                                                SSO单点登录、跨域重定向、跨域设置Cookie、京东单点登录实例分析                    </a>
					<p class="read">阅读数 <span>106915</span></p>
				</li>
							<li>

                    <a
                    data-report-click='{"mod":"popu_541","dest":"https://blog.csdn.net/clh604/article/details/20224735"}' 
                     href="https://blog.csdn.net/clh604/article/details/20224735" >
                                                php rsa加密解密实例                    </a>
					<p class="read">阅读数 <span>83464</span></p>
				</li>
					</ul>
	</div>
</div>
<div id="asideNewComments" class="aside-box">
    <h3 class="aside-title">最新评论</h3>
    <div class="aside-content">
        <ul class="newcomment-list">
                        <li>
                <a class="title text-truncate" data-report-click='{"mod":"popu_542","dest":"https://blog.csdn.net/clh604/article/details/9412291#comments"}'  target="_blank" href="https://blog.csdn.net/clh604/article/details/9412291#comments">百度地图－修改marker图标(i...</a>
                <p class="comment ellipsis">
                    <a href="https://my.csdn.net/weixin_43847283" class="user-name" target="_blank">weixin_43847283：</a>[reply]gbx80238023[/reply]设置和图片相等的像素                </p>
            </li>
                        <li>
                <a class="title text-truncate" data-report-click='{"mod":"popu_542","dest":"https://blog.csdn.net/clh604/article/details/9412291#comments"}'  target="_blank" href="https://blog.csdn.net/clh604/article/details/9412291#comments">百度地图－修改marker图标(i...</a>
                <p class="comment ellipsis">
                    <a href="https://my.csdn.net/gbx80238023" class="user-name" target="_blank">gbx80238023：</a>[reply]weixin_43847283[/reply]找到解决方法了吗，兄弟                </p>
            </li>
                        <li>
                <a class="title text-truncate" data-report-click='{"mod":"popu_542","dest":"https://blog.csdn.net/clh604/article/details/9412291#comments"}'  target="_blank" href="https://blog.csdn.net/clh604/article/details/9412291#comments">百度地图－修改marker图标(i...</a>
                <p class="comment ellipsis">
                    <a href="https://my.csdn.net/Maryshaw" class="user-name" target="_blank">Maryshaw：</a>报错
preMarker is not defined
这个变量是什么?                </p>
            </li>
                        <li>
                <a class="title text-truncate" data-report-click='{"mod":"popu_542","dest":"https://blog.csdn.net/clh604/article/details/9412291#comments"}'  target="_blank" href="https://blog.csdn.net/clh604/article/details/9412291#comments">百度地图－修改marker图标(i...</a>
                <p class="comment ellipsis">
                    <a href="https://my.csdn.net/daquan198163" class="user-name" target="_blank">daquan198163：</a>[reply]huaziqq[/reply]
滚犊子，上班呢 打开个黄网                </p>
            </li>
                        <li>
                <a class="title text-truncate" data-report-click='{"mod":"popu_542","dest":"https://blog.csdn.net/clh604/article/details/9412291#comments"}'  target="_blank" href="https://blog.csdn.net/clh604/article/details/9412291#comments">百度地图－修改marker图标(i...</a>
                <p class="comment ellipsis">
                    <a href="https://my.csdn.net/weixin_44446223" class="user-name" target="_blank">weixin_44446223：</a>如果我想点击，把原有的icon颜色换成其他颜色的怎么操作，位置总是有点不对，offset设置没反应                </p>
            </li>
                    </ul>
    </div>
</div>
	<div id="asideFooter">
                    <div class="aside-box">
                <div id="kp_box_57" data-pid="57"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u3163270",
            container:  s
        });
    })();
</script>
<!-- 多条广告如下脚本只需引入一次 -->
<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" ></script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=57&a=77&c=0&k=&d=1&t=3&u=6a75fa21ae0e4f03a1d40d285547d333"></div>            </div>
        		<div class="aside-box">
			<div class="persion_article">
			</div>
		</div>
	</div>
</aside>
<script src="https://csdnimg.cn/pubfooter/js/publib_footer-1.0.3.js" data-isfootertrack="false" type="text/javascript"></script>
<script>
	$("a.flexible-btn").click(function(){
		$(this).parents('div.aside-box').removeClass('flexible-box');
		$(this).parents("p.text-center").remove();
	})
</script>
<script src="https://g.csdnimg.cn/user-tooltip/1.9/user-tooltip.js"  type="text/javascript"></script>
    </div>
                <div class="recommend-right  align-items-stretch clearfix">
      <aside class="recommend-right_aside">
        <div id="recommend-right" style="height:100%;">
          <div class='d-flex flex-column aside-box groupfile' id="groupfile">
            <h3 class="aside-title">目录</h3>
            <div class="align-items-stretch group_item">
              <div class="toc-container">
              <div class="pos-box">
                <div class="icon-arrow"></div>
                <div class="scroll-box">
                  <div class="toc-box"></div>
                </div>
              </div>
            </div>
          </div>
          </div>
                        <div id="addAdBox" style="display:none">
                  <div id="kp_box_479" data-pid="479"><script type="text/javascript">
        (function() {
            var s = "_" + Math.random().toString(36).slice(2);
            document.write('<div style="" id="' + s + '"></div>');
            (window.slotbydup = window.slotbydup || []).push({
                id: "u4269298",
                container: s
            });
        })();
</script>
<!-- 多条广告如下脚本只需引入一次 -->
<script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/c.js" async="async" defer="defer" >
</script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=479&a=1440&c=0&k=&d=1&t=3&u=5f9fc6bbe2e948acb7de6a0369c35543"></div>              </div>
                    <div class='aside-box kind_person d-flex flex-column'>
          <h3 class="aside-title">分类专栏</h3>
              <div class="align-items-stretch kindof_item">
                <div class="aside-content">
                  <ul>
                                        <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1275072.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1275072.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1275072.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140037908.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">php</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">49篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1320287.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1320287.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1320287.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151026427.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">html5</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">10篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2757475.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2757475.html"}'
                                                      href="https://blog.csdn.net/clh604/category_2757475.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140145169.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">Php源码</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">2篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1261195.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1261195.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1261195.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151124774.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">magento</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">35篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1331443.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1331443.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1331443.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151043371.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">网络/网络安全/缓存/消息队列</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">15篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1934875.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1934875.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1934875.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151101105.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">服务器/架构</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">7篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1917131.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1917131.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1917131.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140037908.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">算法</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">2篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1403334.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1403334.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1403334.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140129601.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">mysql/redis/mongo</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">17篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2233085.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2233085.html"}'
                                                      href="https://blog.csdn.net/clh604/category_2233085.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140012416.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">Tcp/ip协议</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">2篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1864065.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1864065.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1864065.html">
                                                                <img src="https://img-blog.csdnimg.cn/2019092715111047.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">移动开发</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">4篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1315679.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1315679.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1315679.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140053667.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">linux</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">13篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1469421.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1469421.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1469421.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151043371.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">django</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">20篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1284923.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1284923.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1284923.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140037908.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">css</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">3篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1291272.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1291272.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1291272.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151043371.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">js</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">10篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1307582.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1307582.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1307582.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140213434.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">div居中对齐</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">1篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1323370.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1323370.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1323370.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140012416.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">node.js</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">6篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1346847.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1346847.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1346847.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151026427.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">SEO</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">1篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1357126.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1357126.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1357126.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151026427.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">程序员生活日志</span>
                                                                </span>
                              <!--####是否付费-->
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1394296.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1394296.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1394296.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140213434.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">discuz</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">1篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1448035.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1448035.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1448035.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140129601.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">nginx</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">4篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1499847.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1499847.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1499847.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140053667.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">python</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">3篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1513755.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1513755.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1513755.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140053667.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">地图</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">7篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1602861.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1602861.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1602861.html">
                                                                <img src="https://img-blog.csdnimg.cn/2019091813595558.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">yii</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">2篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1579057.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_1579057.html"}'
                                                      href="https://blog.csdn.net/clh604/category_1579057.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140129601.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">wordpress</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">2篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2336795.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2336795.html"}'
                                                      href="https://blog.csdn.net/clh604/category_2336795.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190918140012416.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">企业级搜索</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">5篇</span>
                                                        </a>
                      </li>
                                          <li class="">
                                                    <a class="clearfix" 
                                                        data-report-click='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2343383.html"}'
                              data-report-view='{"mod":"popu_537","strategy":"","dest":"https://blog.csdn.net/clh604/category_2343383.html"}'
                                                      href="https://blog.csdn.net/clh604/category_2343383.html">
                                                                <img src="https://img-blog.csdnimg.cn/20190927151101105.png" alt="">
                                                            <!--####是否付费-->
                              <span class="title oneline"><span class="text">开源项目</span>
                                                                </span>
                              <!--####是否付费-->
                                                                <span class="count float-right">1篇</span>
                                                        </a>
                      </li>
                                      </ul>
              </div>
              </div>
              
          </div>
      </div>
      </aside>  
    </div>
    
    </div>
<div class="mask-dark"></div>
<div class="tool-box vertical">
	<ul class="meau-list">
		<li class="btn-like-box ">
			<button class=" low-height hover-box btn-like " title="点赞">
				<svg class="icon active hover-hide" aria-hidden="true">
					<use xlink:href="#csdnc-thumbsup-ok"></use>
				</svg>
				<svg class="icon no-active hover-hide" aria-hidden="true">
					<use xlink:href="#csdnc-thumbsup"></use>
				</svg>
				<span class="hover-show text-box text">
					<span class="no-active">点赞</span>
					<span class="active">取消点赞</span>
				</span>
				<p id="supportCount"></p>
			</button>
		</li>
		<li class="to-commentBox" id = 'sharePost' data-report-click='{"mod":"popu_794","dest":"https://blog.csdn.net/clh604/article/details/9310185"}'>
			<a class="btn-comments low-height hover-box" >
				<svg class="icon hover-hide" aria-hidden="true" style="padding-top: 3px;">
					<use xlink:href="#icon-csdnc-fenxiang"></use>
				</svg>
				<span class="hover-show text">海报</span>
				<p class="">
				</p>
			</a>
		</li>
		<li class="to-commentBox">
						<a class="btn-comments low-height hover-box" title="写评论" href="#commentBox">
				<svg class="icon hover-hide" aria-hidden="true">
					<use xlink:href="#csdnc-comments"></use>
				</svg>
				<span class="hover-show text">评论</span>
				<p class="">
										</p>
			</a>
		</li>
		<li class="toc-container-box" id="liTocBox">
			<a class="btn-toc low-height hover-box btn-comments" title="目录">
				<svg class="icon hover-hide" aria-hidden="true">
					<use xlink:href="#csdnc-contents"></use>
				</svg>
				<span class="hover-show text">目录</span>
			</a>
			<div class="toc-container">
				<div class="pos-box">
					<div class="icon-arrow"></div>
					<div class="scroll-box">
						<div class="toc-box"></div>
					</div>
				</div>
				<div class="opt-box">
					<button class="btn-opt prev nomore" title="向上">
						<svg class="icon" aria-hidden="true">
							<use xlink:href="#csdnc-chevronup"></use>
						</svg>
					</button>
					<button class="btn-opt next">
						<svg class="icon" aria-hidden="true">
							<use xlink:href="#csdnc-chevrondown"></use>
						</svg>
					</button>
				</div>
			</div>

		</li>
		<li>
			<a class="btn-bookmark low-height hover-box btn-comments"  data-report-click='{"mod":"popu_824"}' title="收藏">
				<svg class="icon active hover-hide" aria-hidden="true" style="padding-top: 2px;">
					<use xlink:href="#icon-shoucangjia"></use>
				</svg>
				<svg class="icon no-active hover-hide" aria-hidden="true" style="padding-top: 2px;">
					<use xlink:href="#icon-csdnc-Collection-G" ></use>
				</svg>
					<span class="hover-show text">收藏</span>
				<!-- <span class="hover-show text-box text">
					<span class="no-active">收藏</span>
					<span class="active">取消收藏</span>
				</span> -->
			</a>
		</li>
		<li class="bdsharebuttonbox">
			<div class="weixin-qr btn-comments low-height hover-box" >
				<a id="btnQrShare" class="bds_weixin clear-share-style" data-report-click='{"mod":"popu_831","dest":""}'  title="手机看"></a>
				<svg class="icon hover-hide" aria-hidden="true">
					<use xlink:href="#csdnc-usephone"></use>
				</svg>
				<span class="hover-show text text3">
					手机看
				</span>
			</div>
		</li>
							<li class="widescreen-hide">
				<a class="prev btn-comments low-height hover-box" href="https://blog.csdn.net/clh604/article/details/9289239" title="django 文件上传">
					<svg class="icon hover-hide" aria-hidden="true">
						<use xlink:href="#csdnc-chevronleft"></use>
					</svg>
					<span class="hover-show text text3">上一篇</span>
				</a>
			</li>
								<li class="widescreen-hide">
			<a class="next btn-comments hover-box low-height" href="https://blog.csdn.net/clh604/article/details/9334003" title="django 模板中使用配置参数">
				<svg class="icon hover-hide" aria-hidden="true">
					<use xlink:href="#csdnc-chevronright"></use>
				</svg>
				<span class="hover-show text text3">下一篇</span>
			</a>
		</li>
						<!-- 宽屏更多按钮 -->
		<li class="widescreen-more">
			<a class="btn-comments chat-ask-button low-height hover-box" title="快问" href="#chatqa">
				<svg class="icon hover-hide" aria-hidden="true">
					<use xlink:href="#csdnc-more"></use>
				</svg>
				<span class="hover-show text">更多</span>

			</a>
			<ul class="widescreen-more-box">
													<li class="widescreen-more">
						<a class="btn-comments low-height hover-box" href="https://blog.csdn.net/clh604/article/details/9289239" title="django 文件上传">
							<svg class="icon hover-hide" aria-hidden="true">
								<use xlink:href="#csdnc-chevronleft"></use>
							</svg>
							<span class="hover-show text text3">上一篇</span>
						</a>
					</li>
																<li class="widescreen-more">
					<a class="btn-comments hover-box low-height" href="https://blog.csdn.net/clh604/article/details/9334003" title="django 模板中使用配置参数">
						<svg class="icon hover-hide" aria-hidden="true">
							<use xlink:href="#csdnc-chevronright"></use>
						</svg>
						<span class="hover-show text text3">下一篇</span>
					</a>
				</li>
							</ul>
		</li>
        	</ul>
</div>
<div id = 'tool-post-common'>
	<div class = 'tool_post_box'>
		<img class = 'tool_post_img' src="https://csdnimg.cn/release/phoenix/write/assets/postShareBack.png" alt="">
		<div id = 'shareCode'></div>
	</div>
</div>
<div id="share-bg-shadow">
<div id="share-qrcode-box">
    <h3>分享到微信朋友圈</h3>
    <div class='qrcode-img-box'>
        <a class="btn-close">×</a>
        <div id='shareQrCode'></div>
	</div>
    <p>扫一扫，手机浏览</p>
</div>
</div>
<script>
		var imgReal = new Image();
		imgReal.src = "https://csdnimg.cn/release/phoenix/write/assets/postShareBack.png"
</script>
<script type=text/javascript crossorigin src="https://csdnimg.cn/release/phoenix/production/qrcode-7c90a92189.min.js"></script>
<script type=text/javascript crossorigin src="https://csdnimg.cn/release/phoenix/production/icon-1349369f06.js"></script>
<script src="//g.csdnimg.cn/??sharewx/1.2.1/sharewx.js" type="text/javascript"></script>
<script type="text/javascript" crossorigin src="https://g.csdnimg.cn/collection-box/1.1.7/collection-box.js"></script><script>
    var recommendCount = 40;
    recommendCount = recommendCount > 1 ? (recommendCount + (recommendCount>6 ? 2 : 1)) : recommendCount;
    var ChannelId = 16;
    var articleId = "9310185";
    var commentscount = 0;
    var islock = false;
    var curentUrl = "https://blog.csdn.net/clh604/article/details/9310185";
    var myUrl = "https://my.csdn.net/";
    //1禁止评论，2正常
    var commentAuth = 2;
    //百度搜索
    var baiduKey = "ptyon urlib2_Python_clh604的专栏-CSDN博客";
    var needInsertBaidu = true;
    // 代码段样式
    var codeStyle = '';
	var highlight = ["ptyon","urlib","2"];//高亮数组

    var share_card_url = 'https://blog.csdn.net/clh604/article/shareArticleCardPage?article_id=9310185'
    var RecommendBlogExpertList = [{"user_name":"qq_39052513","nick_name":"AllanTian","avatar":"https:\/\/profile.csdnimg.cn\/6\/F\/A\/3_qq_39052513","is_expert":false,"article_count":7,"rank":"\u5343\u91cc\u4e4b\u5916"},{"user_name":"qq_44543508","nick_name":"\u5b9c\u6625","avatar":"https:\/\/profile.csdnimg.cn\/7\/1\/6\/3_qq_44543508","is_expert":false,"article_count":157,"rank":"2000+"},{"user_name":"m0_37907797","nick_name":"\u5e05\u5730","avatar":"https:\/\/profile.csdnimg.cn\/9\/8\/5\/3_m0_37907797","is_expert":true,"article_count":79,"rank":"260"},{"user_name":"kebi007","nick_name":"dotnet\u5168\u6808\u5f00\u53d1","avatar":"https:\/\/profile.csdnimg.cn\/3\/4\/1\/3_kebi007","is_expert":true,"article_count":145,"rank":"1000+"},{"user_name":"qq_34337272","nick_name":"SnailClimb\u5728csdn","avatar":"https:\/\/profile.csdnimg.cn\/5\/A\/F\/3_qq_34337272","is_expert":true,"article_count":256,"rank":"1000+"},{"user_name":"u013486414","nick_name":"Rocky0429","avatar":"https:\/\/profile.csdnimg.cn\/3\/E\/B\/3_u013486414","is_expert":true,"article_count":627,"rank":"461"},{"user_name":"qq_36894974","nick_name":"cxuann","avatar":"https:\/\/profile.csdnimg.cn\/E\/5\/9\/3_qq_36894974","is_expert":true,"article_count":86,"rank":"9000+"},{"user_name":"ThinkWon","nick_name":"ThinkWon","avatar":"https:\/\/profile.csdnimg.cn\/0\/B\/6\/3_thinkwon","is_expert":true,"article_count":248,"rank":"2000+"},{"user_name":"weixin_38753103","nick_name":"weixin_38753103","avatar":"https:\/\/profile.csdnimg.cn\/E\/F\/3\/3_weixin_38753103","is_expert":false,"article_count":27,"rank":"\u5343\u91cc\u4e4b\u5916"},{"user_name":"JiuZhang_ninechapter","nick_name":"\u4e5d\u7ae0\u7b97\u6cd5","avatar":"https:\/\/profile.csdnimg.cn\/B\/A\/B\/3_jiuzhang_ninechapter","is_expert":false,"article_count":503,"rank":"4000+"}];
	var articleType = 2;
	var CopyrightContent = '';
    </script>
<script src="https://csdnimg.cn/public/sandalstrap/1.4/js/sandalstrap.min.js"></script>
<script src="https://csdnimg.cn/release/phoenix/vendor/pagination/paging-3d3b805766.js"></script>
<div class="skin-boxshadow"></div>
<div style="display:none;">
	<img src="" onerror='setTimeout(function(){if(!/(csdn.net|iteye.com|baiducontent.com|googleusercontent.com|360webcache.com|sogoucdn.com|bingj.com|baidu.com)$/.test(window.location.hostname)){window.location.href="\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x63\x73\x64\x6e\x2e\x6e\x65\x74"}},3000);'>
</div>
</body>
    <!-- 高亮未与 markdown兼容  -->
	<link rel="stylesheet" href="https://csdnimg.cn/release/blog_editor_html/release1.6.0/ckeditor/plugins/chart/chart.css" />
	<script type="text/javascript" src="https://csdnimg.cn/release/blog_editor_html/release1.6.0/ckeditor/plugins/chart/lib/chart.min.js"></script>
    <script type="text/javascript" src="https://csdnimg.cn/release/blog_editor_html/release1.6.0/ckeditor/plugins/chart/widget2chart.js"></script>
    <script type="text/javascript" src="https://csdnimg.cn/release/phoenix/production/pc_wap_common-f91259fb12.js"></script>
<link rel="stylesheet" href="https://csdnimg.cn/release/blog_editor_html/release1.6.0/ckeditor/plugins/codesnippet/lib/highlight/styles/atom-one-light.css">
<script>
 // 全局声明
 if (window.csdn === undefined) {
      window.csdn = {};
    }
    window.csdn.sideToolbar = {
        options: {
            report:{
                isShow: true,
            },
            qr: {
                isShow: false,
            }
        }
    }
    $(function(){
        $(document).on('click',"a.option-box[data-type='report']",function() {
            window.csdn.userLogin.loadAjax(function(res){
                showReport(false,articleTitles);
            })
        });
    })
</script>
<script src="https://csdnimg.cn/release/phoenix/vendor/iconfont/csdnc-c439e66521.js"></script>
<script src="https://csdnimg.cn/release/phoenix/template/js/common-da450fe83c.min.js"></script>
<script src="https://csdnimg.cn/release/phoenix/template/js/detail-aaf31e4d6c.min.js"></script>
	<script src="https://csdnimg.cn/release/phoenix/themes/skin3-template/skin3-template-e2b6be7b58.min.js"></script>
<script src="https://g.csdnimg.cn/copyright/1.0.3/copyright.js" type="text/javascript"></script>
<script type="text/javascript"  src="https://g.csdnimg.cn/??login-box/1.1.1/30/login-box.js,login-box/1.1.1/30/login-auto.js"></script>
<script>
    $(".MathJax").remove();
    if ($('div.markdown_views pre.prettyprint code.hljs').length > 0) {
        $('div.markdown_views')[0].className = 'markdown_views';
    }
</script>
<script type="text/javascript" src="https://csdnimg.cn/release/blog_mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
            "HTML-CSS": {
                    linebreaks: { automatic: true, width: "94%container" },
                    imageFont: null
            },
            tex2jax: {
                preview: "none"
            },
            mml2jax: {
                preview: 'none'
            }
    });
</script>
    <script src="//g.csdnimg.cn/baidu-search/1.0.2/baidu-search.js"  type="text/javascript"></script>
</html>
